diff --git a/app/build.gradle b/app/build.gradle index 0e04729..135ae55 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,7 +25,8 @@ android { buildTypes { release { - minifyEnabled = false + minifyEnabled = true + shrinkResources = true signingConfig = signingConfigs.release } } diff --git a/app/videonative/src/main/java/com/geehe/videonative/DecodingInfo.java b/app/videonative/src/main/java/com/geehe/videonative/DecodingInfo.java index 499c2ac..f7aad1c 100644 --- a/app/videonative/src/main/java/com/geehe/videonative/DecodingInfo.java +++ b/app/videonative/src/main/java/com/geehe/videonative/DecodingInfo.java @@ -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; @@ -76,4 +78,4 @@ public String toString(final boolean newline) { public String toString() { return toString(false); } -} \ No newline at end of file +} diff --git a/app/videonative/src/main/java/com/geehe/videonative/IVideoParamsChanged.java b/app/videonative/src/main/java/com/geehe/videonative/IVideoParamsChanged.java index c89ece5..03db5fa 100644 --- a/app/videonative/src/main/java/com/geehe/videonative/IVideoParamsChanged.java +++ b/app/videonative/src/main/java/com/geehe/videonative/IVideoParamsChanged.java @@ -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); diff --git a/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNGStats.java b/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNGStats.java index 23ef33b..2b79ae4 100644 --- a/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNGStats.java +++ b/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNGStats.java @@ -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; diff --git a/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNgLink.java b/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNgLink.java index df61dd8..ce146f2 100644 --- a/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNgLink.java +++ b/app/wfbngrtl8812/src/main/java/com/geehe/wfbngrtl8812/WfbNgLink.java @@ -1,12 +1,12 @@ 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; @@ -14,6 +14,7 @@ import java.util.Timer; import java.util.TimerTask; +@Keep public class WfbNgLink implements WfbNGStatsChanged { public static String TAG = "com.geehe.fpvue";