From 8b8576580dc9f0679bd5f2ad1c03d16278b132e0 Mon Sep 17 00:00:00 2001 From: Heon Date: Tue, 5 Dec 2023 01:30:47 +0900 Subject: [PATCH] moneymong-81 chore: fastlane init --- Gemfile | 3 ++ app/build.gradle.kts | 14 ++------- app/google-services.json | 4 +-- core/design-system/build.gradle.kts | 2 +- core/ui/build.gradle.kts | 2 +- data/build.gradle.kts | 2 +- fastlane/Appfile | 2 ++ fastlane/Fastfile | 38 +++++++++++++++++++++++ fastlane/README.md | 48 +++++++++++++++++++++++++++++ fastlane/report.xml | 20 ++++++++++++ feature/sign/build.gradle.kts | 2 +- 11 files changed, 120 insertions(+), 17 deletions(-) create mode 100644 Gemfile create mode 100644 fastlane/Appfile create mode 100644 fastlane/Fastfile create mode 100644 fastlane/README.md create mode 100644 fastlane/report.xml diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..7a118b49 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem "fastlane" diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d4fae930..21456afc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -33,17 +33,6 @@ android { ) } } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 - } - buildFeatures { - compose = true - buildConfig = true - } - composeOptions { - kotlinCompilerExtensionVersion = "1.4.3" - } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" @@ -59,4 +48,7 @@ dependencies { implementation(projects.domain) implementation(projects.feature.sign) + + implementation(libs.androidx.activity.compose) + implementation(libs.androidx.compose.material3) } \ No newline at end of file diff --git a/app/google-services.json b/app/google-services.json index 28268895..790424d0 100644 --- a/app/google-services.json +++ b/app/google-services.json @@ -7,9 +7,9 @@ "client": [ { "client_info": { - "mobilesdk_app_id": "1:1091533625653:android:cbcd471ed618616dad547c", + "mobilesdk_app_id": "1:1091533625653:android:435637da7f3d4352ad547c", "android_client_info": { - "package_name": "com.moneymong.moneymong" + "package_name": "com.moneymong.moneymong.tb" } }, "oauth_client": [], diff --git a/core/design-system/build.gradle.kts b/core/design-system/build.gradle.kts index e8e3ff80..05fc4bc2 100644 --- a/core/design-system/build.gradle.kts +++ b/core/design-system/build.gradle.kts @@ -28,7 +28,7 @@ android { targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "17" } } diff --git a/core/ui/build.gradle.kts b/core/ui/build.gradle.kts index 60405d02..16585bdd 100644 --- a/core/ui/build.gradle.kts +++ b/core/ui/build.gradle.kts @@ -28,7 +28,7 @@ android { targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "17" } } diff --git a/data/build.gradle.kts b/data/build.gradle.kts index 1fee327f..f195827b 100644 --- a/data/build.gradle.kts +++ b/data/build.gradle.kts @@ -28,7 +28,7 @@ android { targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "17" } } diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 00000000..bc0d61c2 --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,2 @@ +json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one +package_name("com.moneymong.moneymong") # e.g. com.krausefx.app diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 00000000..19c557cc --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,38 @@ +# This file contains the fastlane.tools configuration +# You can find the documentation at https://docs.fastlane.tools +# +# For a list of all available actions, check out +# +# https://docs.fastlane.tools/actions +# +# For a list of all available plugins, check out +# +# https://docs.fastlane.tools/plugins/available-plugins +# + +# Uncomment the line if you want fastlane to automatically update itself +# update_fastlane + +default_platform(:android) + +platform :android do + desc "Runs all the tests" + lane :test do + gradle(task: "test") + end + + desc "Submit a new Beta Build to Crashlytics Beta" + lane :beta do + gradle(task: "clean assembleRelease") + crashlytics + + # sh "your_script.sh" + # You can also use other beta testing services here + end + + desc "Deploy a new version to the Google Play" + lane :deploy do + gradle(task: "clean assembleRelease") + upload_to_play_store + end +end diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 00000000..7ec1207f --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,48 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## Android + +### android test + +```sh +[bundle exec] fastlane android test +``` + +Runs all the tests + +### android beta + +```sh +[bundle exec] fastlane android beta +``` + +Submit a new Beta Build to Crashlytics Beta + +### android deploy + +```sh +[bundle exec] fastlane android deploy +``` + +Deploy a new version to the Google Play + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). diff --git a/fastlane/report.xml b/fastlane/report.xml new file mode 100644 index 00000000..c5951ce4 --- /dev/null +++ b/fastlane/report.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/feature/sign/build.gradle.kts b/feature/sign/build.gradle.kts index 95fa0bdf..2b5a0512 100644 --- a/feature/sign/build.gradle.kts +++ b/feature/sign/build.gradle.kts @@ -28,7 +28,7 @@ android { targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "17" } }