1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Add custom APK signature for #Forez releases

This commit is contained in:
Pierre HUBERT 2021-04-28 19:40:19 +02:00
parent 96b737de67
commit 946bef045b
3 changed files with 30 additions and 5 deletions

View File

@ -15,5 +15,7 @@ stable_release_split_per_abi:
stable_release: stable_release:
flutter build apk --flavor stable -t lib/main_online.dart flutter build apk --flavor stable -t lib/main_online.dart
forez_release:
flutter build apk --flavor forez -t lib/forez/main_forez_online.dart
.PHONY: beta_offline_release beta_online_release_split_per_abi stable_release_split_per_abi .PHONY: beta_offline_release beta_online_release_split_per_abi stable_release_split_per_abi stable_release beta_dev_release

View File

@ -64,13 +64,18 @@ android {
storeFile file(keystoreProperties['storeFile']) storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword'] storePassword keystoreProperties['storePassword']
} }
forezRelease {
keyAlias keystoreProperties['forezKeyAlias']
keyPassword keystoreProperties['forezKeyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
} }
buildTypes { buildTypes {
release { release {
signingConfig signingConfigs.release
useProguard true useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
@ -79,16 +84,17 @@ android {
flavorDimensions "version" flavorDimensions "version"
productFlavors { productFlavors {
stable { stable {
signingConfig signingConfigs.release
} }
beta { beta {
signingConfig signingConfigs.release
applicationId "org.communiquons.beta" applicationId "org.communiquons.beta"
} }
forez { forez {
signingConfig signingConfigs.forezRelease
applicationId "org.communiquons.forez" applicationId "org.communiquons.forez"
} }
} }

View File

@ -0,0 +1,17 @@
import 'package:comunic/forez/init.dart';
import 'package:comunic/main.dart';
/// Forez online configuration
///
/// @author Pierre Hubert
void main() {
ForezConfig(
apiServerName: "api.communiquons.org",
apiServerUri: "/",
apiServerSecure: true,
clientName: "ForezMobile",
);
subMain();
}