Updated on 2026-08-14
This commit is contained in:
parent
690318cd8d
commit
273ef2f977
1 changed files with 34 additions and 9 deletions
|
|
@ -36,7 +36,7 @@ platform :android do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build a signed release APK"
|
desc "Build a signed release APK"
|
||||||
lane :release do |options|
|
lane :release do |options| # TODO: remove after fully moving from old CI
|
||||||
gradle(
|
gradle(
|
||||||
task: "clean assemble",
|
task: "clean assemble",
|
||||||
build_type: "Release",
|
build_type: "Release",
|
||||||
|
|
@ -49,14 +49,8 @@ platform :android do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build external and release APKs"
|
desc "Build external and release APKs"
|
||||||
lane :build do |options|
|
lane :build do |options| # TODO: remove after fully moving from old CI
|
||||||
gradle(task: 'clean') # TODO: remove after fully moving from old CI
|
gradle(task: 'clean')
|
||||||
|
|
||||||
launched_from_github_action = options[:launched_from_github_action] || false # TODO: remove after fully moving from old CI
|
|
||||||
if launched_from_github_action
|
|
||||||
FileUtils.cp("../ci_resources/build_ci_gradle.properties", "../gradle.properties")
|
|
||||||
puts File.read("../gradle.properties")
|
|
||||||
end
|
|
||||||
|
|
||||||
gradle(
|
gradle(
|
||||||
task: "bundle",
|
task: "bundle",
|
||||||
|
|
@ -84,6 +78,37 @@ platform :android do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Build release AAB and APKs"
|
||||||
|
lane :buildRelease do |options|
|
||||||
|
FileUtils.cp("../ci_resources/build_ci_gradle.properties", "../gradle.properties")
|
||||||
|
puts File.read("../gradle.properties")
|
||||||
|
|
||||||
|
gradle(
|
||||||
|
task: "bundle",
|
||||||
|
build_type: "Release",
|
||||||
|
properties: {
|
||||||
|
'versionCode' => options[:versionCode],
|
||||||
|
'versionName' => options[:versionName],
|
||||||
|
"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: "assemble",
|
||||||
|
build_type: "Release",
|
||||||
|
properties: {
|
||||||
|
'versionCode' => options[:versionCode],
|
||||||
|
'versionName' => options[:versionName],
|
||||||
|
"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 "Submit a new Beta Build to Firebase App Distribution"
|
desc "Submit a new Beta Build to Firebase App Distribution"
|
||||||
lane :beta do |options|
|
lane :beta do |options|
|
||||||
firebase_app_distribution(
|
firebase_app_distribution(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue