Updated on 2026-08-14
This commit is contained in:
parent
1cdb5114c8
commit
59e0d8f0a4
2 changed files with 28 additions and 50 deletions
|
|
@ -16,65 +16,53 @@
|
|||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
|
||||
desc "Runs all the tests"
|
||||
lane :test do
|
||||
gradle(
|
||||
task: "test",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug")
|
||||
task: "test",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "DebugUnitTest")
|
||||
end
|
||||
|
||||
desc "Build a signed release APK"
|
||||
lane :release do |options|
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Release",
|
||||
properties: {
|
||||
"android.injected.signing.store.file" => options[:keystore],
|
||||
"android.injected.signing.store.password" => options[:store_password],
|
||||
"android.injected.signing.key.alias" => options[:key_alias],
|
||||
"android.injected.signing.key.password" => options[:key_password],
|
||||
})
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Release",
|
||||
properties: {
|
||||
"android.injected.signing.store.file" => options[:keystore],
|
||||
"android.injected.signing.store.password" => options[:store_password],
|
||||
"android.injected.signing.key.alias" => options[:key_alias],
|
||||
"android.injected.signing.key.password" => options[:key_password],
|
||||
})
|
||||
end
|
||||
|
||||
desc "Build debug and release APKs"
|
||||
lane :build do |options|
|
||||
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug_beta")
|
||||
|
||||
gradle(
|
||||
task: "assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Release",
|
||||
desc "Build debug and release APKs"
|
||||
lane :build do |options|
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug_beta")
|
||||
gradle(
|
||||
task: "assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Release",
|
||||
properties: {
|
||||
"android.injected.signing.store.file" => options[:keystore],
|
||||
"android.injected.signing.store.password" => options[:store_password],
|
||||
"android.injected.signing.key.alias" => options[:key_alias],
|
||||
"android.injected.signing.key.password" => options[:key_password],
|
||||
})
|
||||
end
|
||||
|
||||
desc "Build a debug APK"
|
||||
lane :debug do
|
||||
gradle(task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug_beta")
|
||||
end
|
||||
end
|
||||
|
||||
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||
lane :beta do |options|
|
||||
crashlytics(
|
||||
api_token: options[:api_token],
|
||||
build_secret: options[:build_secret],
|
||||
apk_path: options[:apk_path])
|
||||
api_token: options[:api_token],
|
||||
build_secret: options[:build_secret],
|
||||
apk_path: options[:apk_path])
|
||||
end
|
||||
|
||||
desc "Deploy a new version to the Google Play"
|
||||
lane :deploy do
|
||||
upload_to_play_store
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -31,21 +31,11 @@ Build a signed release APK
|
|||
fastlane android build
|
||||
```
|
||||
Build debug and release APKs
|
||||
### android debug
|
||||
```
|
||||
fastlane android debug
|
||||
```
|
||||
Build a debug APK
|
||||
### android beta
|
||||
```
|
||||
fastlane android beta
|
||||
```
|
||||
Submit a new Beta Build to Crashlytics Beta
|
||||
### android deploy
|
||||
```
|
||||
fastlane android deploy
|
||||
```
|
||||
Deploy a new version to the Google Play
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue