diff --git a/Makefile b/Makefile index 7d7b87d..6602343 100644 --- a/Makefile +++ b/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 diff --git a/android/app/build.gradle b/android/app/build.gradle index 2803740..c158a47 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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" } } diff --git a/lib/forez/main_forez_online.dart b/lib/forez/main_forez_online.dart new file mode 100644 index 0000000..6f7bd83 --- /dev/null +++ b/lib/forez/main_forez_online.dart @@ -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(); +}