Revert "Revert "Rename to org.selfprivacy.app and add flavors.""

This reverts commit 77d36a3a6a.
This commit is contained in:
Alya Sirko 2022-09-20 08:43:32 +03:00
parent fb3e084b4f
commit 59d20f8789
6 changed files with 24 additions and 7 deletions

View File

@ -26,7 +26,9 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion flutter.compileSdkVersion
namespace 'org.selfprivacy.app'
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
sourceSets {
@ -48,7 +50,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "pro.kherel.selfprivacy"
applicationId "org.selfprivacy.app"
minSdkVersion 21
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
@ -69,6 +71,21 @@ android {
versionName "nightly-" + project.getVersionCode()
}
}
flavorDimensions "default"
productFlavors {
fdroid {
applicationId "pro.kherel.selfprivacy"
}
production {
applicationIdSuffix ""
}
nightly {
applicationIdSuffix ".nightly"
versionCode project.getVersionCode()
versionName "nightly-" + project.getVersionCode()
}
}
}
flutter {

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pro.kherel.selfprivacy">
package="org.selfprivacy.app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pro.kherel.selfprivacy">
package="org.selfprivacy.app">
<uses-permission android:name="android.permission.INTERNET" />
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.

View File

@ -1,4 +1,4 @@
package pro.kherel.selfprivacy
package org.selfprivacy.app
import io.flutter.embedding.android.FlutterActivity

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pro.kherel.selfprivacy">
package="org.selfprivacy.app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->

View File

@ -7,7 +7,7 @@ project(runner LANGUAGES CXX)
set(BINARY_NAME "selfprivacy")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "pro.kherel.selfprivacy")
set(APPLICATION_ID "org.selfprivacy.app")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.