Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
submitted to playstore 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hansbak committed May 3, 2022
1 parent cce1689 commit f172f3a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 108 deletions.
151 changes: 47 additions & 104 deletions docs/fastlane/android/README.md
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).
4 changes: 2 additions & 2 deletions packages/admin/android/fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000430891">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000341315">

</testcase>


<testcase classname="fastlane.lanes" name="1: upload_to_play_store" time="66.271191086">
<testcase classname="fastlane.lanes" name="1: upload_to_play_store" time="31.846114028">

</testcase>

Expand Down
2 changes: 1 addition & 1 deletion packages/admin/pubspec.yaml
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:
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h1>
}
scriptLoaded = true;
var scriptTag = document.createElement('script');
scriptTag.src = 'main.dart.js?version=004';
scriptTag.src = 'main.dart.js?version=005';
scriptTag.type = 'application/javascript';
document.body.append(scriptTag);
}
Expand Down

0 comments on commit f172f3a

Please sign in to comment.