feat: setup Fastlane for Google Play Store
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -73,3 +73,4 @@ sentry.properties
|
|||||||
|
|
||||||
screenshots
|
screenshots
|
||||||
fastlane/Preview.html
|
fastlane/Preview.html
|
||||||
|
fastlane/play-store-credentials.json
|
||||||
@@ -217,6 +217,14 @@ android {
|
|||||||
keyAlias 'androiddebugkey'
|
keyAlias 'androiddebugkey'
|
||||||
keyPassword 'android'
|
keyPassword 'android'
|
||||||
}
|
}
|
||||||
|
release {
|
||||||
|
if (project.hasProperty('FINTUNES_UPLOAD_STORE_FILE')) {
|
||||||
|
storeFile file(FINTUNES_UPLOAD_STORE_FILE)
|
||||||
|
storePassword FINTUNES_UPLOAD_STORE_PASSWORD
|
||||||
|
keyAlias FINTUNES_UPLOAD_KEY_ALIAS
|
||||||
|
keyPassword FINTUNES_UPLOAD_KEY_PASSWORD
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
@@ -225,7 +233,7 @@ android {
|
|||||||
release {
|
release {
|
||||||
// Caution! In production, you need to generate your own keystore file.
|
// Caution! In production, you need to generate your own keystore file.
|
||||||
// see https://reactnative.dev/docs/signed-apk-android.
|
// see https://reactnative.dev/docs/signed-apk-android.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.release
|
||||||
minifyEnabled enableProguardInReleaseBuilds
|
minifyEnabled enableProguardInReleaseBuilds
|
||||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ package_name("nl.moeilijkedingen.jellyfinaudioplayer")
|
|||||||
app_identifier("nl.moeilijkedingen.jellyfinaudioplayer")
|
app_identifier("nl.moeilijkedingen.jellyfinaudioplayer")
|
||||||
apple_id("lei@moeilijkedingen.nl")
|
apple_id("lei@moeilijkedingen.nl")
|
||||||
team_id("238P3C58WC")
|
team_id("238P3C58WC")
|
||||||
|
json_key_file("./fastlane/play-store-credentials.json")
|
||||||
@@ -45,6 +45,15 @@ platform :ios do
|
|||||||
upload_to_testflight()
|
upload_to_testflight()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
lane :build do
|
||||||
|
build_app(
|
||||||
|
scheme: "Fintunes",
|
||||||
|
output_directory: "build",
|
||||||
|
workspace: "ios/Fintunes.xcworkspace",
|
||||||
|
export_method: "app-store",
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
after_all do
|
after_all do
|
||||||
build_number = get_build_number(
|
build_number = get_build_number(
|
||||||
xcodeproj: "ios/Fintunes.xcodeproj",
|
xcodeproj: "ios/Fintunes.xcodeproj",
|
||||||
@@ -101,8 +110,18 @@ platform :android do
|
|||||||
gradle_file: "android/app/build.gradle"
|
gradle_file: "android/app/build.gradle"
|
||||||
)
|
)
|
||||||
gradle(
|
gradle(
|
||||||
task: "assembleRelease",
|
task: "assemble",
|
||||||
|
build_type: "Release",
|
||||||
project_dir: "android"
|
project_dir: "android"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
lane :release do
|
||||||
|
gradle(
|
||||||
|
task: "bundle",
|
||||||
|
build_type: 'Release',
|
||||||
|
project_dir: "android"
|
||||||
|
)
|
||||||
|
upload_to_play_store
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -31,6 +31,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### ios build
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane ios build
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### ios screenshots
|
### ios screenshots
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -52,6 +60,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
|||||||
|
|
||||||
Generate beta build
|
Generate beta build
|
||||||
|
|
||||||
|
### android release
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android release
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||||
|
|||||||
Reference in New Issue
Block a user