From 77d36a3a6a71284d1847ede65ef57484795520ef Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Thu, 15 Sep 2022 00:35:58 +0300 Subject: [PATCH] Revert "Rename to org.selfprivacy.app and add flavors." This reverts commit 0d280c6b4954d8b49ad46850293fded7ed52654c. --- android/app/build.gradle | 21 ++----------------- android/app/src/debug/AndroidManifest.xml | 2 +- android/app/src/main/AndroidManifest.xml | 2 +- .../kherel/selfprivacy}/MainActivity.kt | 2 +- android/app/src/profile/AndroidManifest.xml | 2 +- android/build.gradle | 13 ------------ linux/CMakeLists.txt | 2 +- 7 files changed, 7 insertions(+), 37 deletions(-) rename android/app/src/main/kotlin/{org/selfprivacy/app => pro/kherel/selfprivacy}/MainActivity.kt (75%) diff --git a/android/app/build.gradle b/android/app/build.gradle index 3811c5e7..0963724e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -26,9 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - namespace 'org.selfprivacy.app' - - compileSdkVersion flutter.compileSdkVersion + compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion sourceSets { @@ -50,7 +48,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "org.selfprivacy.app" + applicationId "pro.kherel.selfprivacy" minSdkVersion 21 targetSdkVersion 31 versionCode flutterVersionCode.toInteger() @@ -64,21 +62,6 @@ android { signingConfig signingConfigs.debug } } - - flavorDimensions "default" - productFlavors { - fdroid { - applicationId "pro.kherel.selfprivacy" - } - production { - applicationIdSuffix "" - } - nightly { - applicationIdSuffix ".nightly" - versionCode project.getVersionCode() - versionName "nightly-" + project.getVersionCode() - } - } } flutter { diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index dddeb01f..27e1af1d 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="pro.kherel.selfprivacy"> diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 50f47475..33c2ba9a 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="pro.kherel.selfprivacy"> diff --git a/android/build.gradle b/android/build.gradle index d78205d8..31e95773 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,18 +1,5 @@ buildscript { ext.kotlin_version = '1.6.10' - ext.getVersionCode = { -> - try { - def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git', 'rev-list', '--first-parent', '--count', 'origin/master' - standardOutput = stdout - } - return Integer.parseInt(stdout.toString().trim()) - } - catch (ignored) { - return -1 - } - } repositories { google() jcenter() diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 94dd8d0b..cc332a28 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -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 "org.selfprivacy.app") +set(APPLICATION_ID "pro.kherel.selfprivacy") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake.