This repository has been archived by the owner on Aug 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,48 @@ | ||
Running fastlane to upload in Playstore | ||
======================================= | ||
|
||
Steps AFTER preparation below: | ||
1. create screenshots and frame them, in admin home directory: | ||
flutter pub run utils:screenshots | ||
2. Move the framed images to the respective directories | ||
under: metadata/android/en-US/images: phoneScreenshots, seveninchScreenshots,teninchScreenshots | ||
3. increase in pubspec.yaml version+buildnr | ||
buildnr should always increase, version is shown to the user | ||
4. in web/index.html increase version: | ||
main.dart.js?version=? | ||
5. adjust the backend urls (test or production) | ||
in assets/cfg/app_settings.json | ||
6. create app bundle in admin home: | ||
flutter build appbundle | ||
7. Upload in Play store: (in android dir) | ||
(everything including build/meta/screenshots) | ||
fastlane supply \ | ||
--aab ../build/app/outputs/bundle/release/app-release.aab \ | ||
--track beta --in_app_update_priority 3 \ | ||
--version_code 7 | ||
--skip_docs | ||
upload just binary: | ||
fastlane upload skip_docs | ||
|
||
check file fastfile for another actions. | ||
|
||
To prepare before running screenshots and upload to playstore | ||
------------------------------------------------------------- | ||
1. make sure the menutest works, see test_driver directory | ||
use these emulators: | ||
|
||
Nexus_10_API_30 • Nexus 10 API 30 • Google • android | ||
Nexus_7_2012_API_30 • Nexus 7 (2012) API 30 • Google • android | ||
Pixel_4_Edited_1_API_30 • Pixel 4 (Edited) 1 API 30 • User • android | ||
|
||
Install frameit_chrome: dart pub global activate frameit_chrome | ||
|
||
In admin dir: frame the screenshots single run: | ||
create title.strings and key.word.strings with screenshots | ||
flutter pub global run frameit_chrome \ | ||
--base-dir=android/fastlane/metadata/android \ | ||
--frames-dir=android/fastlane/frames \ | ||
--chrome-binary="/usr/bin/google-chrome-stable" \ | ||
--pixel-ratio=1 | ||
|
||
adding framed images | ||
|
||
Other requirements: | ||
==================== | ||
|
||
create a <projdir>/android/key.properties link to a local file | ||
-------------------------------------------------------------- | ||
which contains the following info: | ||
storePassword=xxxxx | ||
keyPassword=xxxxx | ||
keyAlias=xxxxx | ||
storeFile=xxxxxxx | ||
|
||
(do NOT upload the actual file into git!) | ||
to create a link in linux in the android directory: | ||
ln -s key.properties here/your/actual/file | ||
|
||
should have local.properties file | ||
--------------------------------- | ||
which contains the following info: | ||
sdk.dir=/home/dell/Android/Sdk | ||
flutter.sdk=/home/dell/snap/flutter/common/flutter | ||
flutter.buildMode=release | ||
flutter.versionName=0.0.1 | ||
flutter.versionCode=5 | ||
|
||
make sure this file is referenced in build.gradle: | ||
def flutterRoot = localProperties.getProperty('flutter.sdk') | ||
if (flutterRoot == null) { | ||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | ||
} | ||
|
||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') | ||
if (flutterVersionCode == null) { | ||
flutterVersionCode = '3' | ||
} | ||
|
||
def flutterVersionName = localProperties.getProperty('flutter.versionName') | ||
if (flutterVersionName == null) { | ||
flutterVersionName = '1.0' | ||
|
||
build the aab bundle: | ||
---------------------- | ||
flutter build appbundle | ||
|
||
First time upload by hand, make sure bundle id is set correctly: | ||
---------------------------------------------------------------- | ||
flutter create --org org/growerp/admin . | ||
init: fastlane supply init | ||
|
||
Upload in Play store: (android dir) | ||
(everything including build/meta/screenshots) | ||
-------------------------------------- | ||
fastlane supply \ | ||
--aab /home/dell/admin/build/app/outputs/bundle/release/app-release.aab \ | ||
--track beta --in_app_update_priority 3 \ | ||
--version_code x | ||
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 test | ||
|
||
```sh | ||
[bundle exec] fastlane android test | ||
``` | ||
|
||
Runs all the tests | ||
|
||
### android deploy | ||
|
||
```sh | ||
[bundle exec] fastlane android deploy | ||
``` | ||
|
||
Deploy a new version to the Google Play | ||
|
||
### android upload | ||
|
||
```sh | ||
[bundle exec] fastlane android upload | ||
``` | ||
|
||
|
||
|
||
---- | ||
|
||
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: admin | ||
version: 0.1.0+37 | ||
version: 0.1.1+38 | ||
publish_to: none | ||
|
||
environment: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters