/dgrocery

A app which its only purpose is to share grocery lists through QR codes distributed

Primary LanguageKotlin

DGrocery

A simple grocery app connected to the grocery orbit dapp project.

CICD

Auto deployed with fastlane.

Do it yourself, checkout this blog.

Prepare

  1. Create a keystore for signing: like:"
  • keytool -v -genkey -keystore release.keystore -alias dgrocery -keyalg RSA -validity 10000
  • configure in ~/.gradle/gradle.properties or set as environment variables:
    APP_CONFIG_RELEASE_STOREFILE={path to your keystore}
    APP_CONFIG_RELEASE_STORE_PASSWORD=*****
    APP_CONFIG_RELEASE_STORE_ALIAS=*****
    APP_CONFIG_RELEASE_STORE_KEY_PASSWORD=*****
    

    APP_CONFIG_RELEASE_STORE_KEY_PASSWORD takes default value from APP_CONFIG_RELEASE_STORE_PASSWORD

    APP_CONFIG_RELEASE_STORE_ALIAS default value is key0

  1. Prepare play_config.json file for upload
  2. Build release ./gradlew clean bundleRelease

Locally

Setup (on debian / ubuntu, but windows should work aswell, depends on ruby and dependencies):

# install deps
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev

sudo gem install fastlane -NV

# check play_condfig.json file
fastlane run validate_play_store_json_key json_key:play_config.json

# check aab is signed
jarsigner -verify ./app/build/outputs/bundle/release/app-release.aab

# upload built bundle (using internal track, other tracks: beta / )
fastlane supply --aab ./app/build/outputs/bundle/release/app-release.aab --track internal

Github Actions

WIP