Skip to content

Commit

Permalink
[feat]: add suffix to pkg for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse205 authored Dec 24, 2023
1 parent 42508a9 commit 7000c4c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix = ".debug"
}
}

buildFeatures {
Expand Down
9 changes: 9 additions & 0 deletions app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:label="@string/app_name_debug"
tools:replace="android:label"
tools:ignore="MissingApplicationIcon" />
</manifest>
4 changes: 4 additions & 0 deletions app/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name_debug" translatable="false">LogFox Debug</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.f0x1d.logfox.provider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">

Expand Down

0 comments on commit 7000c4c

Please sign in to comment.