Browse Source

Release shrink fixes: unsafe features & camera focus marker

video-recording
Hardcore Sushi 1 year ago
parent
commit
9d0a6e170e
  1. 2
      app/build.gradle
  2. 9
      app/proguard-rules.pro
  3. 5
      app/src/main/AndroidManifest.xml
  4. 1
      app/src/main/res/layout/activity_camera.xml

2
app/build.gradle

@ -24,6 +24,8 @@ android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

9
app/proguard-rules.pro

@ -18,4 +18,11 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-keepattributes InnerClasses
-keep class sushi.hardcore.droidfs.SettingsActivity$** {
*;
}
-keep class sushi.hardcore.droidfs.explorers.ExplorerElement
-keep class com.otaliastudios.cameraview.markers.DefaultAutoFocusMarker

5
app/src/main/AndroidManifest.xml

@ -7,12 +7,13 @@
android:name="${applicationId}.WRITE_TEMPORARY_STORAGE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-feature android:name="android.hardware.camera.any" android:required="false"/>
<uses-feature android:name="android.hardware.fingerprint" android:required="false"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove"/> <!--removing this permission automatically added by exoplayer-->
<application
android:name=".ColoredApplication"

1
app/src/main/res/layout/activity_camera.xml

@ -15,6 +15,7 @@
app:cameraAutoFocusMarker="@string/cameraview_default_autofocus_marker"
app:cameraHdr="on"
app:cameraPictureFormat="jpeg"
app:cameraPlaySounds="false"
app:cameraAudio="off"/>
<androidx.constraintlayout.widget.ConstraintLayout

Loading…
Cancel
Save