Initial commit
This commit is contained in:
4
fastlane/Appfile
Normal file
4
fastlane/Appfile
Normal file
@@ -0,0 +1,4 @@
|
||||
json_key_file(File.join(__dir__, ENV['GOOGLE_PLAY_CONSOLE_CREDENTIALS_FILE']))
|
||||
package_name(ENV['APP_NAME'])
|
||||
app_identifier(ENV['APP_NAME'])
|
||||
apple_id(ENV['APPLE_ID'])
|
||||
61
fastlane/Fastfile
Normal file
61
fastlane/Fastfile
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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)
|
||||
|
||||
package = load_json(json_path: File.join(__dir__, 'package.json'))
|
||||
version_number = package['version'] || '0.0.1'
|
||||
# Generate version code by padding each component to 3 digits and joining them together
|
||||
# Eg. 1.2.3 becomes 001002003 -> 1002003 as integer
|
||||
version_code = version_number.split('.').map { |v| v.rjust(3, '0') }.join.to_i || 1
|
||||
|
||||
android_project_dir = File.join(__dir__, 'android')
|
||||
|
||||
platform :android do
|
||||
desc 'Release a new version to Google Play'
|
||||
lane :release do
|
||||
gradle(
|
||||
task: 'clean assembleRelease',
|
||||
project_dir: android_project_dir,
|
||||
properties: {
|
||||
'versionName' => version_number,
|
||||
'versionCode' => version_code
|
||||
}
|
||||
)
|
||||
upload_to_play_store
|
||||
end
|
||||
end
|
||||
|
||||
ios_project_dir = File.join(__dir__, 'ios', 'App', 'App.xcodeproj')
|
||||
|
||||
platform :ios do
|
||||
desc 'Release a new version to the App Store'
|
||||
lane :release do
|
||||
increment_version_number(
|
||||
version_number: version_number,
|
||||
xcodeproj: ios_project_dir
|
||||
)
|
||||
increment_build_number(
|
||||
build_number: version_code,
|
||||
xcodeproj: ios_project_dir
|
||||
)
|
||||
sync_code_signing(
|
||||
type: 'appstore',
|
||||
xcodeproj: ios_project_dir
|
||||
)
|
||||
build_app(xcodeproj: ios_project_dir)
|
||||
upload_to_app_store
|
||||
end
|
||||
end
|
||||
5
fastlane/Pluginfile
Normal file
5
fastlane/Pluginfile
Normal file
@@ -0,0 +1,5 @@
|
||||
# Autogenerated by fastlane
|
||||
#
|
||||
# Ensure this file is checked in to source control!
|
||||
|
||||
gem 'fastlane-plugin-load_json'
|
||||
45
fastlane/README.md
Normal file
45
fastlane/README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
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 release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android release
|
||||
```
|
||||
|
||||
Release a new version to Google Play
|
||||
|
||||
----
|
||||
|
||||
|
||||
## iOS
|
||||
|
||||
### ios release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios release
|
||||
```
|
||||
|
||||
Release a new version to the App Store
|
||||
|
||||
----
|
||||
|
||||
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).
|
||||
23
fastlane/report.xml
Normal file
23
fastlane/report.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite name="fastlane.lanes">
|
||||
|
||||
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000427939">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="1: load_json" time="0.000541864">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="2: clean assembleRelease" time="2.587929187">
|
||||
|
||||
</testcase>
|
||||
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
Reference in New Issue
Block a user