feat: add nightly flavor to the app
This commit is contained in:
@@ -29,6 +29,11 @@ android {
|
|||||||
githubRelease{
|
githubRelease{
|
||||||
initWith release
|
initWith release
|
||||||
}
|
}
|
||||||
|
nightly{
|
||||||
|
versionNameSuffix '-nightly'
|
||||||
|
applicationIdSuffix '.nightly'
|
||||||
|
signingConfig signingConfigs.debug
|
||||||
|
}
|
||||||
playRelease{
|
playRelease{
|
||||||
initWith release
|
initWith release
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="mo_app_name" translatable="false">Moshidon</string>
|
<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_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_color_palette_nord">Nord</string>
|
||||||
<string name="mo_app_username" translatable="false">\@moshidon</string>
|
<string name="mo_app_username" translatable="false">\@moshidon</string>
|
||||||
|
|||||||
20
mastodon/src/nightly/AndroidManifest.xml
Normal file
20
mastodon/src/nightly/AndroidManifest.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user