Skip to content

varmeh/botigaApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Botiga App

Botiga eCommerce Platform hosts 2 mobile apps:

  • A Customer app (this one)
  • A Merchant app

These apps essentially covers the 2 aspects of marketplace - supply & demand

Command to generate models using json_serializable

flutter pub run build_runner build --delete-conflicting-outputs

Custom Icons

Issues with iOS build

General Cleanup

  • If you face unexpected build or link issues like Undefined symbols for architecture x86_64, do a clean build with the following:
cd ios
pod deintegrate && pod cache clean --all
rm -rf ~/Library/Developer/Xcode/DerivedData

cd ..
flutter clean && \
rm pubspec.lock && \
rm ios/Podfile.lock && \
rm -Rf ios/Pods && \
rm -Rf ios/.symlinks && \
rm -Rf ios/Flutter/Flutter.framework && \
rm -Rf ios/Flutter/Flutter.podspec && \
rm -Rf ios/Runner.xcworkspace

flutter pub get
cd ios
pod install

flutter run --flavor dev

App Version Number

  • Flutter app version follows format <version>+<buildNumber> e.g. 0.2.1+2

  • version update mandatory for apple appstore

  • buildNumber update mandatory for playstore. Increment by 1 for every release

  • In short, change both version & build number before pushing to appstore & playstore

Firebase App Distribution

  • Firebase app distribution would be used for testing apps
  • It should be done via botiga-dev project
  • Select appropriate app in firebase console for testing & upload your version there
  • Send the email to all testers & notify them

Android

  • Create an apk version:
flutter build apk --flavor dev --release
  • Upload it

iOS

  • First, create an ios app version:
flutter build ios --flavor dev --release --bundle-sksl-path flutter_01.sksl.json
  • Once app is built, archieve it as explaind here

  • Once archieve is done, it will open distribution organizer

  • Use it to build an Ad-hoc distribution archieve. Once finished, distribution archieve - ipa will be exported at the path of your choice.

  • Upload the ipa

App Distribution

On Play Store

  • Create an obfuscated appbundle version for sharing with command:

Update the Imagespec version in Xcode before building to App Version

flutter build appbundle --obfuscate --split-debug-info=/Users/varunmehta/Projects/botiga/symbols/botigaApp_1.1.1+6 --flavor prod --release
  • botigaApp_<version> Version here should match one in pubspec.yaml

The reason to use appbundle has been detailed in article.

On App Store

  • Create an obfuscated appbundle version for sharing with command:
flutter build ios --obfuscate --split-debug-info=/Users/varunmehta/Projects/botiga/symbols/botigaApp_3.0.3+27 --flavor prod --release
  • botigaApp_<version> Version here should match one in pubspec.yaml

  • Once app is built, archieve it as explaind here

  • Once archieve is done, it will open distribution organizer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages