Allow parallel installation of debug and release versions (#636)

* Allow parallel installation of debug and release versions
...by adding '.debug' suffix to application id

* add separate app name resource for debug build
This commit is contained in:
sal0max 2022-09-21 06:57:42 +02:00 committed by GitHub
parent 3c492d2626
commit 269a01ed42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -29,6 +29,10 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix '.debug'
versionNameSuffix ' (DEBUG)'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11

View File

@ -0,0 +1,3 @@
<resources>
<string name="application_name" translatable="false">Infinity (Debug)</string>
</resources>

View File

@ -419,7 +419,7 @@
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="ml.docilealligator.infinityforreddit.provider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data

View File

@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/coordinator_layout_search_activity"
tools:application=".SearchActivity">
tools:application="ml.docilealligator.infinityforreddit.activities.SearchActivity">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_layout_search_activity"
@ -119,7 +119,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:layoutManager=".customviews.LinearLayoutManagerBugFixed" />
app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed" />
</LinearLayout>