From e00259972512c775ac89ca7ca97986bd8a87e464 Mon Sep 17 00:00:00 2001 From: ci_bot Date: Thu, 26 Sep 2024 09:52:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E5=8C=96fastlane?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/Gemfile | 6 ++++++ android/app/build.gradle | 24 +++++++++++++++++++++++ android/fastlane/Appfile | 2 ++ android/fastlane/Fastfile | 38 +++++++++++++++++++++++++++++++++++++ android/fastlane/Pluginfile | 5 +++++ ios/Gemfile | 7 +++++++ ios/Podfile.lock | 6 ------ ios/fastlane/Appfile | 6 ++++++ ios/fastlane/Fastfile | 23 ++++++++++++++++++++++ ios/fastlane/Pluginfile | 5 +++++ 10 files changed, 116 insertions(+), 6 deletions(-) create mode 100644 android/Gemfile create mode 100644 android/fastlane/Appfile create mode 100644 android/fastlane/Fastfile create mode 100644 android/fastlane/Pluginfile create mode 100644 ios/Gemfile create mode 100644 ios/fastlane/Appfile create mode 100644 ios/fastlane/Fastfile create mode 100644 ios/fastlane/Pluginfile diff --git a/android/Gemfile b/android/Gemfile new file mode 100644 index 00000000..cdd3a6b3 --- /dev/null +++ b/android/Gemfile @@ -0,0 +1,6 @@ +source "https://rubygems.org" + +gem "fastlane" + +plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') +eval_gemfile(plugins_path) if File.exist?(plugins_path) diff --git a/android/app/build.gradle b/android/app/build.gradle index 94b98531..2d22aec3 100755 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -108,6 +108,18 @@ android { resValue "string", "app_name", "锁通通" manifestPlaceholders.JPUSH_PKGNAME = "com.skychip.lock" } + sky_pre { + dimension "flavor-type" + applicationId "com.skychip.lock.pre" + signingConfig signingConfigs.sky + resValue "string", "app_name", "锁通通-P" + } + sky_dev { + dimension "flavor-type" + applicationId "com.skychip.lock.dev" + signingConfig signingConfigs.sky + resValue "string", "app_name", "锁通通-D" + } xhj { dimension "flavor-type" applicationId "com.xhjcn.lock" @@ -115,6 +127,18 @@ android { resValue "string", "app_name", "星星锁" manifestPlaceholders.JPUSH_PKGNAME = "com.xhjcn.lock" } + xhj_pre { + dimension "flavor-type" + applicationId "com.xhjcn.lock.pre" + signingConfig signingConfigs.xhj + resValue "string", "app_name", "星星锁-P" + } + xhj_dev { + dimension "flavor-type" + applicationId "com.xhjcn.lock.dev" + signingConfig signingConfigs.xhj + resValue "string", "app_name", "星星锁-D" + } } // ----- END flavorDimensions (autogenerated by flutter_flavorizr) ----- diff --git a/android/fastlane/Appfile b/android/fastlane/Appfile new file mode 100644 index 00000000..26360691 --- /dev/null +++ b/android/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("") # e.g. com.krausefx.app diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile new file mode 100644 index 00000000..19c557cc --- /dev/null +++ b/android/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/android/fastlane/Pluginfile b/android/fastlane/Pluginfile new file mode 100644 index 00000000..ecfdb3ce --- /dev/null +++ b/android/fastlane/Pluginfile @@ -0,0 +1,5 @@ +# Autogenerated by fastlane +# +# Ensure this file is checked in to source control! + +gem 'fastlane-plugin-pgyer' diff --git a/ios/Gemfile b/ios/Gemfile new file mode 100644 index 00000000..21cb5dfc --- /dev/null +++ b/ios/Gemfile @@ -0,0 +1,7 @@ +source "https://rubygems.org" + +gem "fastlane" +gem 'cocoapods', '1.14.3' +gem 'public_suffix', '~> 4.0' +plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') +eval_gemfile(plugins_path) if File.exist?(plugins_path) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 61d3d085..022a6c01 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -28,8 +28,6 @@ PODS: - AMapFoundation (>= 1.8.0) - app_settings (5.1.1): - Flutter - - audio_service (0.0.1): - - Flutter - audio_session (0.0.1): - Flutter - audioplayers_darwin (0.0.1): @@ -166,7 +164,6 @@ DEPENDENCIES: - amap_flutter_location (from `.symlinks/plugins/amap_flutter_location/ios`) - amap_flutter_map (from `.symlinks/plugins/amap_flutter_map/ios`) - app_settings (from `.symlinks/plugins/app_settings/ios`) - - audio_service (from `.symlinks/plugins/audio_service/ios`) - audio_session (from `.symlinks/plugins/audio_session/ios`) - audioplayers_darwin (from `.symlinks/plugins/audioplayers_darwin/ios`) - auto_orientation (from `.symlinks/plugins/auto_orientation/ios`) @@ -237,8 +234,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/amap_flutter_map/ios" app_settings: :path: ".symlinks/plugins/app_settings/ios" - audio_service: - :path: ".symlinks/plugins/audio_service/ios" audio_session: :path: ".symlinks/plugins/audio_session/ios" audioplayers_darwin: @@ -318,7 +313,6 @@ SPEC CHECKSUMS: AMapFoundation: 9885c48fc3a78fdfb84a0299a2293e56ea3c9fec AMapLocation: 5248aec2455ebb5d104b367813c946430a2ee033 app_settings: 017320c6a680cdc94c799949d95b84cb69389ebc - audio_service: f509d65da41b9521a61f1c404dd58651f265a567 audio_session: 088d2483ebd1dc43f51d253d4a1c517d9a2e7207 audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40 auto_orientation: 102ed811a5938d52c86520ddd7ecd3a126b5d39d diff --git a/ios/fastlane/Appfile b/ios/fastlane/Appfile new file mode 100644 index 00000000..4282947e --- /dev/null +++ b/ios/fastlane/Appfile @@ -0,0 +1,6 @@ +# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app +# apple_id("[[APPLE_ID]]") # Your Apple Developer Portal username + + +# For more information about the Appfile, see: +# https://docs.fastlane.tools/advanced/#appfile diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile new file mode 100644 index 00000000..0f39ea63 --- /dev/null +++ b/ios/fastlane/Fastfile @@ -0,0 +1,23 @@ +# 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(:ios) + +platform :ios do + desc "Description of what the lane does" + lane :custom_lane do + # add actions here: https://docs.fastlane.tools/actions + end +end diff --git a/ios/fastlane/Pluginfile b/ios/fastlane/Pluginfile new file mode 100644 index 00000000..ecfdb3ce --- /dev/null +++ b/ios/fastlane/Pluginfile @@ -0,0 +1,5 @@ +# Autogenerated by fastlane +# +# Ensure this file is checked in to source control! + +gem 'fastlane-plugin-pgyer'