mirror of
https://github.com/tooot-app/app
synced 2024-12-22 07:34:06 +01:00
Bringing back building apk
This commit is contained in:
parent
3345692719
commit
3e081ab377
@ -108,6 +108,29 @@ private_lane :build_android do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Build Android apk"
|
||||||
|
private_lane :build_android_apk do
|
||||||
|
sh("echo #{ENV["ANDROID_KEYSTORE"]} | base64 -d | tee #{File.expand_path('..', Dir.pwd)}/android/tooot.jks >/dev/null", log: false)
|
||||||
|
|
||||||
|
prepare_playstore_android
|
||||||
|
|
||||||
|
build_android_app(
|
||||||
|
task: 'assemble',
|
||||||
|
build_type: 'release',
|
||||||
|
project_dir: "./android",
|
||||||
|
print_command: true,
|
||||||
|
print_command_output: true,
|
||||||
|
properties: {
|
||||||
|
"android.injected.signing.store.file" => "#{File.expand_path('..', Dir.pwd)}/android/tooot.jks",
|
||||||
|
"android.injected.signing.store.password" => ENV["ANDROID_KEYSTORE_PASSWORD"],
|
||||||
|
"android.injected.signing.key.alias" => ENV["ANDROID_KEYSTORE_ALIAS"],
|
||||||
|
"android.injected.signing.key.password" => ENV["ANDROID_KEYSTORE_KEY_PASSWORD"],
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
sh "mv #{lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]} #{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"
|
||||||
|
end
|
||||||
|
|
||||||
lane :ios do
|
lane :ios do
|
||||||
cocoapods(clean_install: true, podfile: "./ios/Podfile")
|
cocoapods(clean_install: true, podfile: "./ios/Podfile")
|
||||||
build_ios
|
build_ios
|
||||||
@ -121,6 +144,7 @@ end
|
|||||||
|
|
||||||
lane :release do
|
lane :release do
|
||||||
if ENVIRONMENT == 'release'
|
if ENVIRONMENT == 'release'
|
||||||
|
build_android_apk
|
||||||
set_github_release(
|
set_github_release(
|
||||||
repository_name: GITHUB_REPO,
|
repository_name: GITHUB_REPO,
|
||||||
name: GITHUB_RELEASE,
|
name: GITHUB_RELEASE,
|
||||||
@ -128,6 +152,7 @@ lane :release do
|
|||||||
description: "No changelog provided",
|
description: "No changelog provided",
|
||||||
commitish: git_branch,
|
commitish: git_branch,
|
||||||
is_prerelease: false
|
is_prerelease: false
|
||||||
|
upload_assets: ["#{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
rocket
|
rocket
|
||||||
|
Loading…
Reference in New Issue
Block a user