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)
|
default_platform(:android)
|
||||||
|
|
||||||
platform :android do
|
platform :android do
|
||||||
|
|
||||||
desc "Runs all the tests"
|
desc "Runs all the tests"
|
||||||
lane :test do
|
lane :test do
|
||||||
gradle(
|
gradle(
|
||||||
task: "test",
|
task: "test",
|
||||||
flavor: "tangemAccess",
|
flavor: "tangemAccess",
|
||||||
build_type: "Debug")
|
build_type: "DebugUnitTest")
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build a signed release APK"
|
desc "Build a signed release APK"
|
||||||
lane :release do |options|
|
lane :release do |options|
|
||||||
gradle(
|
gradle(
|
||||||
task: "clean assemble",
|
task: "clean assemble",
|
||||||
flavor: "tangemAccess",
|
flavor: "tangemAccess",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
properties: {
|
properties: {
|
||||||
"android.injected.signing.store.file" => options[:keystore],
|
"android.injected.signing.store.file" => options[:keystore],
|
||||||
"android.injected.signing.store.password" => options[:store_password],
|
"android.injected.signing.store.password" => options[:store_password],
|
||||||
"android.injected.signing.key.alias" => options[:key_alias],
|
"android.injected.signing.key.alias" => options[:key_alias],
|
||||||
"android.injected.signing.key.password" => options[:key_password],
|
"android.injected.signing.key.password" => options[:key_password],
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build debug and release APKs"
|
desc "Build debug and release APKs"
|
||||||
lane :build do |options|
|
lane :build do |options|
|
||||||
|
gradle(
|
||||||
gradle(
|
task: "clean assemble",
|
||||||
task: "clean assemble",
|
flavor: "tangemAccess",
|
||||||
flavor: "tangemAccess",
|
build_type: "Debug_beta")
|
||||||
build_type: "Debug_beta")
|
gradle(
|
||||||
|
task: "assemble",
|
||||||
gradle(
|
flavor: "tangemAccess",
|
||||||
task: "assemble",
|
build_type: "Release",
|
||||||
flavor: "tangemAccess",
|
|
||||||
build_type: "Release",
|
|
||||||
properties: {
|
properties: {
|
||||||
"android.injected.signing.store.file" => options[:keystore],
|
"android.injected.signing.store.file" => options[:keystore],
|
||||||
"android.injected.signing.store.password" => options[:store_password],
|
"android.injected.signing.store.password" => options[:store_password],
|
||||||
"android.injected.signing.key.alias" => options[:key_alias],
|
"android.injected.signing.key.alias" => options[:key_alias],
|
||||||
"android.injected.signing.key.password" => options[:key_password],
|
"android.injected.signing.key.password" => options[:key_password],
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build a debug APK"
|
|
||||||
lane :debug do
|
|
||||||
gradle(task: "clean assemble",
|
|
||||||
flavor: "tangemAccess",
|
|
||||||
build_type: "Debug_beta")
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "Submit a new Beta Build to Crashlytics Beta"
|
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||||
lane :beta do |options|
|
lane :beta do |options|
|
||||||
crashlytics(
|
crashlytics(
|
||||||
api_token: options[:api_token],
|
api_token: options[:api_token],
|
||||||
build_secret: options[:build_secret],
|
build_secret: options[:build_secret],
|
||||||
apk_path: options[:apk_path])
|
apk_path: options[:apk_path])
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Deploy a new version to the Google Play"
|
|
||||||
lane :deploy do
|
|
||||||
upload_to_play_store
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -31,21 +31,11 @@ Build a signed release APK
|
||||||
fastlane android build
|
fastlane android build
|
||||||
```
|
```
|
||||||
Build debug and release APKs
|
Build debug and release APKs
|
||||||
### android debug
|
|
||||||
```
|
|
||||||
fastlane android debug
|
|
||||||
```
|
|
||||||
Build a debug APK
|
|
||||||
### android beta
|
### android beta
|
||||||
```
|
```
|
||||||
fastlane android beta
|
fastlane android beta
|
||||||
```
|
```
|
||||||
Submit a new Beta Build to Crashlytics 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