refactor: read android secrets from environment

This commit is contained in:
Rainer Killinger
2022-02-10 15:19:06 +01:00
parent d22e6ff87f
commit e78496fb8b
2 changed files with 16 additions and 10 deletions

View File

@@ -7,17 +7,23 @@ BACKEND_VERSION="2.0.0" # Minimum backend version th
APP_LINK_HOST="your.deep.link.host.tld" # Your host used for universal (deep) links APP_LINK_HOST="your.deep.link.host.tld" # Your host used for universal (deep) links
APP_URL_SCHEME="de.anyschool.app" # Custom url scheme for native app versions APP_URL_SCHEME="de.anyschool.app" # Custom url scheme for native app versions
# Android specific configuration
ANDROID_PACKAGE_NAME="de.anyschool.app.droid" # e.g. com.krausefx.app
# iOS specific sonfiguration # iOS specific sonfiguration
LOCATION_USAGE_DESCRIPTION="Die Ortungsdienste werden für die Kartenansichten und bessere Suchergebnisse benötigt" LOCATION_USAGE_DESCRIPTION="Ortungsdienste werden für die Kartenansichten und bessere Suchergebnisse benötigt"
CALENDAR_USAGE_DESCRIPTION="Zugriff auf Kalender wird für die Synchronisierung deiner Uni Termine benötigt" CALENDAR_USAGE_DESCRIPTION="Zugriff auf Kalender wird für die Synchronisierung deiner Uni Termine benötigt"
IOS_BUNDLE_IDENTIFIER="com.anyschool.app.ios" # The bundle identifier of your ios app IOS_BUNDLE_IDENTIFIER="com.anyschool.app.ios" # The bundle identifier of your ios app
APPLE_ID="example@domain.tld" # Your Apple Developer email address APPLE_ID="example@domain.tld" # Your Apple Developer email address
ITC_TEAM_ID="123412345" # App Store Connect Team ID ITC_TEAM_ID="123412345" # App Store Connect Team ID
TEAM_ID="ABCDEV1234" # Developer Team ID TEAM_ID="ABCDEV1234" # Developer Team ID
PROVISIONING_PROFILE_NAME="App Deployment Profile" # Name of the apps own provisioning profile used for signing
# Android specific configuration
ANDROID_PACKAGE_NAME="de.anyschool.app.android" # Your Google Playconsole app package name
# Provide the following environment variables in a secure fashion.
# Don't change the following lines!
ANDROID_KEYSTORE_PASSWORD="${ANDROID_KEYSTORE_PASSWORD:-'unsed'}" # Passwort to your keyfile
ANDROID_KEYSTORE_KEY_ALIAS="${ANDROID_KEYSTORE_KEY_ALIAS:-'unsed'}" # Name/Alias of the key used for signing within the keyfile
ANDROID_KEYSTORE_KEY_PASSWORD="${ANDROID_KEYSTORE_KEY_PASSWORD:-'unsed'}" # Passwort to the this very key

View File

@@ -41,10 +41,10 @@ platform :android do
build_type: "Release", build_type: "Release",
print_command: false, print_command: false,
properties: { properties: {
"android.injected.signing.store.file" => "../../../playstore.keystore", "android.injected.signing.store.file" => "/build/playstore.keystore",
"android.injected.signing.store.password" => "", "android.injected.signing.store.password" => ENV['ANDROID_KEYSTORE_PASSWORD'],
"android.injected.signing.key.alias" => "", "android.injected.signing.key.alias" => ENV['ANDROID_KEYSTORE_KEY_ALIAS'],
"android.injected.signing.key.password" => "", "android.injected.signing.key.password" => ENV['ANDROID_KEYSTORE_KEY_PASSWORD'],
"versionCode" => version_code, "versionCode" => version_code,
"versionName" => package_json['version'] "versionName" => package_json['version']
} }