Skip to content

Commit

Permalink
build: debug apk come with application suffix
Browse files Browse the repository at this point in the history
Instead of using the same one as Release, app.revanced.manager.flutter - We add .debug to it, yay, co-installation of two variants!
  • Loading branch information
validcube committed Aug 15, 2023
1 parent c400619 commit 6436a1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ android {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
debug {
shrinkResources false
minifyEnabled false
signingConfig signingConfigs.debug
applicationIdSuffix ".debug"
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
}

packagingOptions {
Expand Down

1 comment on commit 6436a1e

@kitadai31
Copy link
Contributor

@kitadai31 kitadai31 commented on 6436a1e Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For your information, Flutter supports x86 for debug build.
So, abiFilters are not necessary under the debug block.
This is why I added abiFilters under the release block instead of defaultConfig block.

(However, since there is almost no demand for debugging on x86, I personally think it is not necessary to fix it!)

Please sign in to comment.