feat: add nightly flavor to the app

This commit is contained in:
LucasGGamerM
2023-03-30 14:20:10 -03:00
parent 7f44c48c12
commit 5ec762ac0d
3 changed files with 26 additions and 0 deletions

View File

@@ -29,6 +29,11 @@ android {
githubRelease{
initWith release
}
nightly{
versionNameSuffix '-nightly'
applicationIdSuffix '.nightly'
signingConfig signingConfigs.debug
}
playRelease{
initWith release
minifyEnabled true

View File

@@ -2,6 +2,7 @@
<resources>
<string name="mo_app_name" translatable="false">Moshidon</string>
<string name="mo_app_name_debug" translatable="false">Moshidon Debug</string>
<string name="mo_app_name_nightly" translatable="false">Moshidon Nightly</string>
<string name="mo_color_palette_nord">Nord</string>
<string name="mo_app_username" translatable="false">\@moshidon</string>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.joinmastodon.android">
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<application
tools:replace="android:label"
android:label="@string/mo_app_name_nightly">
<!-- <receiver android:name=".updater.GithubSelfUpdaterImpl$InstallerStatusReceiver" android:exported="false"/>-->
<!-- <receiver android:name=".updater.GithubSelfUpdaterImpl$AfterUpdateRestartReceiver" android:exported="true" android:enabled="false">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>-->
<!-- </intent-filter>-->
<!-- </receiver>-->
</application>
</manifest>