#Publishing an Expo App for Android
- Make sure you have the pc-api-*.json for the Google Service Account
- Increment "versionCode" in app.json
- Run eas build --platform android
- Run eas submit --platform android
#Publishing an Expo App for Android
#!/bin/sh | |
# simple bash script to update the build number to whatever is entered. | |
appname="yourname" | |
# variables | |
pbxproj="ios/$appname.xcodeproj/project.pbxproj"; | |
gradle='android/app/build.gradle'; | |
# get current versions | |
androidVersion=`cat $gradle |grep -m1 "versionName" | cut -d'"' -f2 | tr -d ';' | tr -d ' '` |
#!/bin/bash | |
# Script to bump expo.js version code | |
# get current versions | |
currentVersion=`cat app.json|jq '.[] | .android | .versionCode'` | |
# show current versions | |
echo "The current version is: $currentVersion" | |
# get new version from user input |
# simple script to check the bitcoin sync level of your btcd node | |
echo `btcctl -s localhost:8337 getbestblock|jq -r -c .height`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l |
# simple script to check the bitcoin sync level of your bitcoind node | |
echo `bitcoin-cli getblockcount 2>&1`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l |
#!/bin/bash | |
# description: prints balance for any bitcoin address | |
# requirements: jq and curl | |
# usage: $ bitcoinbalance.sh btcaddress | |
curl -s https://api.blockcypher.com/v1/btc/main/addrs/$1 | jq '.balance' | awk '{print $1/100000000}' |
#!/bin/sh | |
# bash script to update build number | |
# variables | |
PLIST=`find ./ios -name "Info.plist"` | |
GRADLE=`find ./android/app -name "build.gradle"` | |
BRANCH=`git symbolic-ref --short -q HEAD` | |
# announcement | |
echo |
#!/bin/bash | |
# check versions in Info.plist and app/build.gradle | |
# compare to public releases on both apple and google stores | |
#variables | |
PLIST=`find ./ios -name "Info.plist"` | |
GRADLE=`find ./android/app -name "build.gradle"` | |
APP_ID="com.yourapp.app" | |
GAPP_ID="com.yourapp.app" |
#!/bin/bash | |
# This sends an on-chain transaction with a memo defined in the MEMO section. | |
# | |
# Usage: | |
# 1. Create a file such as a "recipients.txt" file where you list all of the recipients one per line | |
# 2. Set the account and memo under variables below - make sure your wallet is unlokced! | |
# Then run: | |
# ./transaction.sh recipients.txt | |
# variables |
#!/bin/bash | |
# You should already have cleos, keosd installed with a wallet created | |
# In that wallet you will need your private key | |
# Usage: | |
# 1. Create a recipients.csv in the same dir as this script | |
# ** FORMAT OF CSV SHOULD BE like this: | |
# benobi 0.00000001 | |
# paul 0.00000001 | |
# That will send one SAT to "benobi" and 1 sat to "paul" | |
# 2. Update the TOKENBANK - this is the account you will be sending FROM |