init
This commit is contained in:
commit
a4c68ca9e2
76 changed files with 2737 additions and 0 deletions
2
android/fastlane/AppFile
Normal file
2
android/fastlane/AppFile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
|
||||
package_name("org.fnives.android.servernotifications")
|
||||
70
android/fastlane/Fastfile
Normal file
70
android/fastlane/Fastfile
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# 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
|
||||
#
|
||||
|
||||
# Uncomment the line if you want fastlane to automatically update itself
|
||||
# update_fastlane
|
||||
|
||||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
|
||||
before_all do
|
||||
PROD_APP_IDENTIFIER = "org.fnives.android.servernotifications"
|
||||
|
||||
# Environment variable should be the full path to the PlayStore auth .json
|
||||
PLAY_STORE_AUTH_FILE = ENV['PNS_ANDROID_PLAY_STORE_AUTH_FILE']
|
||||
end
|
||||
|
||||
desc "Submit a new Production Build to Play Store"
|
||||
desc "By Default it sets the version_code to last from PlayStore + 1."
|
||||
desc ">Optionally version code increase can be skipped via:"
|
||||
desc "```sh"
|
||||
desc "[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:true"
|
||||
desc "```"
|
||||
lane :deployProdToPlayStore do |options|
|
||||
skip_build_number_increase = options[:skip_build_number_increase] # optional, if not set, it gets the last from PlayStore then adds + 1
|
||||
package_name = PROD_APP_IDENTIFIER
|
||||
|
||||
if skip_build_number_increase.nil? || skip_build_number_increase.empty? || !skip_build_number_increase
|
||||
last_version_codes = google_play_track_version_codes(
|
||||
track: 'internal',
|
||||
json_key: PLAY_STORE_AUTH_FILE,
|
||||
package_name: package_name
|
||||
)
|
||||
last_version_code = last_version_codes[0]
|
||||
version_code = last_version_code + 1
|
||||
end
|
||||
|
||||
gradle(task: 'clean', flags: "--no-daemon")
|
||||
gradle(
|
||||
task: 'bundle',
|
||||
build_type: 'release',
|
||||
flags: "--no-daemon",
|
||||
properties: {
|
||||
"applicationId" => PROD_APP_IDENTIFIER,
|
||||
"versionCode" => version_code
|
||||
}
|
||||
)
|
||||
production_aab = lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]
|
||||
mapping_file_path = lane_context[SharedValues::GRADLE_MAPPING_TXT_OUTPUT_PATH]
|
||||
|
||||
upload_to_play_store(
|
||||
track: 'internal',
|
||||
release_status: 'draft', # can remove once app is released to the public
|
||||
aab: production_aab,
|
||||
json_key: PLAY_STORE_AUTH_FILE,
|
||||
skip_upload_apk: true,
|
||||
package_name: package_name,
|
||||
mapping_paths: [mapping_file_path]
|
||||
)
|
||||
end
|
||||
end
|
||||
5
android/fastlane/Pluginfile
Normal file
5
android/fastlane/Pluginfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Autogenerated by fastlane
|
||||
#
|
||||
# Ensure this file is checked in to source control!
|
||||
|
||||
gem 'fastlane-plugin-firebase_app_distribution'
|
||||
42
android/fastlane/README.md
Normal file
42
android/fastlane/README.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
fastlane documentation
|
||||
----
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||
|
||||
# Available Actions
|
||||
|
||||
## Android
|
||||
|
||||
### android deployProdToPlayStore
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android deployProdToPlayStore
|
||||
```
|
||||
|
||||
Submit a new Production Build to Play Store
|
||||
|
||||
By Default it sets the version_code to last from PlayStore + 1.
|
||||
|
||||
>Optionally version code increase can be skipped via:
|
||||
|
||||
```sh
|
||||
|
||||
[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:true
|
||||
|
||||
```
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
|
||||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
||||
|
||||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
||||
33
android/fastlane/report.xml
Normal file
33
android/fastlane/report.xml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite name="fastlane.lanes">
|
||||
|
||||
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000498">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="1: google_play_track_version_codes" time="1.653315">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="2: clean" time="16.227663">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="3: bundlerelease" time="145.845877">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="4: upload_to_play_store" time="20.229148">
|
||||
|
||||
</testcase>
|
||||
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
Loading…
Add table
Add a link
Reference in a new issue