Search This Blog

Monday, September 9, 2024

Tuesday, May 28, 2024

git commit

# Clone the repository
cd repo-name

# Add the original repository as an upstream remote
git remote -v

# Fetch and merge the latest changes from upstream
git fetch upstream
git checkout main
git merge upstream/main

# Create a new branch for the bug fix
git checkout -b bugfix-branch

# Make your code changes, then stage and commit them
git add .
git commit -m "Fix: Description of the bug fix"

# Push the changes to your forked repository
git push origin bugfix-branch

Monday, August 7, 2023

React native app debug

Create a react app via the quickstart, need studio /jdk 11 /some env entries. 

js debug via the chrome insp controls. 

use npm start and it will launch android emulator . need sdk tools installed for emulator to work . 

./gradlew assembleDebug for debug apk 
npx react-native run-android --variant=release

Friday, September 25, 2020

Pushing a react native app to playstore

Your app build.gradle will have information about the debug or release apk you will clreate.
check the proguard rules in case you get errors while creating the release app via the
./gradlew assembleRelease or ./gradlew bundleRelease 

Bundle release will create .aab file which google likes and will create architecture specific builds.. 
so that the google android platform identifies on run time, what kind of device is requesting the apk 
and it pushed only that build , it reduces the over all size to 20 percent of actual size.

If your apk size is 30mb and you use enable architecture specific build in proguard rules 

 */
def enableSeparateBuildPerCPUArchitecture = false // if you set true you will get 4 different builds for different architectures... either use this 
or make the bundle of release and let google decide which build to push .. 

/**
 * Run Proguard to shrink the Java bytecode in release builds.
 */
def enableProguardInReleaseBuilds = true   // if u use this, you might hit the class not found errors on the logcat console while doing adb logcat .. 

you will have to change pro guard rules to skip  those files for which you are getting class not found errors in release apks .. or crashes.. 

Every release you make to your exisiting app should have the bundle version code and version number greater 
than the older artifact, else it will be shadowed and new devices will never get your updated.

  versionCode 3434
        versionName "1.5"

Also let google manage your keys... signing keys ... please dont confuse sha1 fingerprints with signing keys... 
Your sha1 fingerprints are used to  restrict .. google maps api key access as well as firebase api key restrictions...