fluffychat/android/fastlane/Fastfile
Brord van Wierst 609eff1100
Gh action android (#1081)
* android n ios

* set this branch gh actions

* set this branch gh actions2

* set this branch gh actions3

* set this branch gh actions4

* set this branch gh actions4.1

* set this branch gh actions5

* made executable

* ...

* ...2

* ...3

* ...4

* ...5

* ...6

* ...7

* ...88

* ios test keys

* ios test keys2

* changed some fluufychat stuff

* reset activation

* pic update

* reverted integrate to run again

* ios-build1

* ios-build2

* android space clearing

* another attempt

* another attempt

* another attempt2

* another attempt3

* android downgrade

* undo cleanup

* remove cache

* sdk version force?

* sdk version force remove

* r8 fix

* material

* material remove agian

* reset gradle, up flutter

* downgfrade to 21

* android ndk up agian

* android ndk up agian2

* with disk spcae r4emove agian...

* allow ios modules

* allow ios modules2

* updated version to compile on ios

* how baout this

* ios generated files

* removed exclude group

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2024-12-13 12:02:58 -05:00

71 lines
1.9 KiB
Ruby

# 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
#
# Workaround for https://github.com/fastlane/fastlane/issues/21507#issuecomment-1723116829
ENV['SUPPLY_UPLOAD_MAX_RETRIES']='5'
# Uncomment the line if you want fastlane to automatically update itself
update_fastlane
default_platform(:android)
platform :android do
lane :set_build_code_internal do
versions = google_play_track_version_codes(
track: "internal",
json_key: "./keys.json"
)
last_version = versions[0].to_i
Dir.chdir("../..") do
re = /version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]*/i
config = File.read("./pubspec.yaml")
version_name = config.match(re).captures
subst = "version: #{version_name[0]}+#{last_version+1}"
result = config.gsub(re, subst)
File.open("./pubspec.yaml", 'w') { |file| file.write(result) }
end
end
lane :deploy_internal_test do
versions = google_play_track_version_codes(
track: "internal",
json_key: "./keys.json"
)
last_version = versions[0].to_i
upload_to_play_store(
track: 'internal',
aab: '../build/app/outputs/bundle/release/app-release.aab',
version_code: "#{last_version+1}",
)
end
lane :deploy_candidate do
upload_to_play_store(
track: 'internal',
track_promote_to: "beta",
deactivate_on_promote: false,
skip_upload_changelogs: true,
)
end
lane :deploy_release do
upload_to_play_store(
track: 'internal',
track_promote_to: "production",
deactivate_on_promote: false,
skip_upload_changelogs: true,
)
end
end