setup fastlane for android

This commit is contained in:
Gergely Hegedus 2023-09-01 17:18:08 +03:00
parent bf2fab3aa1
commit c28bf2449e
10 changed files with 485 additions and 3 deletions

View file

@ -1,5 +1,7 @@
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
apply plugin: "com.google.gms.google-services"
apply plugin: "com.google.firebase.crashlytics"
/**
* This is the configuration block to customize your React Native Android app.
@ -68,6 +70,10 @@ def enableProguardInReleaseBuilds = false
*/
def jscFlavor = 'org.webkit:android-jsc:+'
// custom properties
def applicationIdArgument = project.findProperty('applicationId')
def applicationVersionCodeArgument = project.findProperty('versionCode')?.toInteger()
android {
ndkVersion rootProject.ext.ndkVersion
@ -75,10 +81,10 @@ android {
namespace "com.initproject"
defaultConfig {
applicationId "com.initproject"
applicationId applicationIdArgument ?: "com.initproject.prod"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionCode applicationVersionCodeArgument ?: 1
versionName "1.0"
}
signingConfigs {
@ -88,6 +94,12 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
storeFile file(System.getenv("CI_EVALUATION_KEYSTORE_FILE") ?: 'debug.keystore')
keyAlias System.getenv("CI_EVALUATION_KEY_ALIAS") ?: ''
keyPassword System.getenv("CI_EVALUATION_KEY_PASSWORD") ?: ''
storePassword System.getenv("CI_EVALUATION_STORE_PASSWORD") ?: ''
}
}
buildTypes {
debug {
@ -96,7 +108,7 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
@ -118,6 +130,11 @@ dependencies {
} else {
implementation jscFlavor
}
// custom dependencies
implementation platform('com.google.firebase:firebase-bom:32.2.3')
implementation("com.google.firebase:firebase-crashlytics")
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

View file

@ -0,0 +1,84 @@
{
"project_info": {
"project_number": "64659984801",
"project_id": "ci-evaluation-personal-gergo",
"storage_bucket": "ci-evaluation-personal-gergo.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:64659984801:android:f21a2be57feb587af43be0",
"android_client_info": {
"package_name": "com.initproject.prod"
}
},
"oauth_client": [
{
"client_id": "64659984801-n9tuveqcc6veah52nb21vbv0r5ss4amv.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.initproject.prod",
"certificate_hash": "e9934a221771b5f7891db33ffc8e8f3bd3b3950d"
}
},
{
"client_id": "64659984801-c9nmf33iv49v201t6hma0opfsaueb4ve.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAQt__5yThkzxiZQ70QEw5-liVZlfDWryo"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "64659984801-c9nmf33iv49v201t6hma0opfsaueb4ve.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:64659984801:android:7a0514333a32b8c5f43be0",
"android_client_info": {
"package_name": "com.initproject.staging"
}
},
"oauth_client": [
{
"client_id": "64659984801-44962u44e40acpqs7f463p4ce85p34vn.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.initproject.staging",
"certificate_hash": "3280b28dceff1a28e88d328f7f6fc6fd692f7b24"
}
},
{
"client_id": "64659984801-c9nmf33iv49v201t6hma0opfsaueb4ve.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAQt__5yThkzxiZQ70QEw5-liVZlfDWryo"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "64659984801-c9nmf33iv49v201t6hma0opfsaueb4ve.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}