Skip to content

Commit

Permalink
Use code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
skilurius committed Aug 27, 2024
1 parent 79ab472 commit d41f4a6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ android {

buildTypes {
release {
minifyEnabled = false
minifyEnabled = true
shrinkResources = true
signingConfig = signingConfigs.release
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.geehe.videonative;

import androidx.annotation.Keep;

import java.util.LinkedHashMap;
import java.util.Map;

@SuppressWarnings("WeakerAccess")
@Keep
public class DecodingInfo {
public final float currentFPS;
public final float currentKiloBitsPerSecond;
Expand Down Expand Up @@ -76,4 +78,4 @@ public String toString(final boolean newline) {
public String toString() {
return toString(false);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.geehe.videonative;

// Also called by native code
import androidx.annotation.Keep;

@Keep
public interface IVideoParamsChanged {
void onVideoRatioChanged(int videoW, int videoH);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.geehe.wfbngrtl8812;

import androidx.annotation.Keep;

@Keep
public class WfbNGStats {
public final int count_p_all;
public final int count_p_dec_err;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
package com.geehe.wfbngrtl8812;


import android.content.Context;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbManager;
import android.util.Log;

import androidx.annotation.Keep;
import androidx.appcompat.app.AppCompatActivity;

import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;

@Keep
public class WfbNgLink implements WfbNGStatsChanged {
public static String TAG = "com.geehe.fpvue";

Expand Down

0 comments on commit d41f4a6

Please sign in to comment.