Skip to content

Commit

Permalink
Improve compatibility with other GCam versions and minify app
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelFur committed Oct 30, 2021
1 parent beeaee5 commit e8562e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ android {
applicationId 'com.google.android.apps.photos'
minSdkVersion 29
targetSdkVersion 31
versionCode 4
versionName "1.1.1"
versionCode 5
versionName "1.2.0"
}

signingConfigs {
Expand All @@ -40,6 +40,7 @@ android {
signingConfig signingConfigs.debug
}
release {
minifyEnabled true
signingConfig signingConfigs.release
}
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<intent-filter>
<action android:name="android.provider.action.REVIEW" />
<action android:name="android.provider.action.REVIEW_SECURE" />
<action android:name="com.android.camera.action.REVIEW" />
<action android:name="com.google.android.apps.photos.action.SECURE_REVIEW" />

<category android:name="android.intent.category.DEFAULT" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MainActivity : Activity() {
Log.i("PhotosShim", "No READ_EXTERNAL_STORAGE permission, requesting it")
requestPermissions(arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE), PERMISSIONS_INT)
// We can now quit the app, as GCam wil relaunch it again automatically
return quit()
return finish()
}

Log.i(
Expand Down

0 comments on commit e8562e1

Please sign in to comment.