mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-25 12:28:50 +00:00
Add custom APK signature for #Forez releases
This commit is contained in:
parent
96b737de67
commit
946bef045b
4
Makefile
4
Makefile
@ -15,5 +15,7 @@ stable_release_split_per_abi:
|
||||
stable_release:
|
||||
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
|
||||
|
@ -64,13 +64,18 @@ android {
|
||||
storeFile file(keystoreProperties['storeFile'])
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
|
||||
forezRelease {
|
||||
keyAlias keystoreProperties['forezKeyAlias']
|
||||
keyPassword keystoreProperties['forezKeyPassword']
|
||||
storeFile file(keystoreProperties['storeFile'])
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
|
||||
useProguard true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
||||
@ -79,16 +84,17 @@ android {
|
||||
|
||||
flavorDimensions "version"
|
||||
productFlavors {
|
||||
|
||||
stable {
|
||||
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
|
||||
beta {
|
||||
signingConfig signingConfigs.release
|
||||
applicationId "org.communiquons.beta"
|
||||
}
|
||||
|
||||
forez {
|
||||
signingConfig signingConfigs.forezRelease
|
||||
applicationId "org.communiquons.forez"
|
||||
}
|
||||
}
|
||||
|
17
lib/forez/main_forez_online.dart
Normal file
17
lib/forez/main_forez_online.dart
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user