This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT_DIR="ios/Invygo" | |
INFOPLIST_FILE="Info.plist" | |
INFOPLIST_DIR="${PROJECT_DIR}/${INFOPLIST_FILE}" | |
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
# Update plist with new values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
NEW_PACKAGE_VERSION="${PACKAGE_VERSION//./_}" | |
BRANCH_NAME="release_${NEW_PACKAGE_VERSION}" | |
if [ `git branch -ra | egrep "remotes/origin/${BRANCH_NAME}$"` ] | |
then | |
echo "Branch name $BRANCH_NAME already exists!" | |
git checkout $BRANCH_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d '{ | |
"to": "REGISTRATION_TOKEN", | |
"notification": { | |
"title" : "Hello", | |
"body" : "World" | |
} | |
}' \ | |
-i -H "Application/json" \ | |
-H "Content-type: application/json" \ | |
-H "Authorization: key=SERVER_KEY" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Famiby.Helpers.AWS do | |
alias Famiby.Helpers | |
@bucket_name Application.get_env(:ex_aws, :bucket) | |
@region Application.get_env(:ex_aws, :region) | |
@env Application.get_env(:famiby, :env) | |
def s3_signed_url(filename, acl \\ "public-read") do | |
key = "#{@env}/#{filename}" | |
content_type = Helpers.File.file_type(filename) |
Step 1. Run command: expo eject
in root of expo project.
Step 2. Choose 2nd option: Eject to ExpoKit and follow step to step from Expo command to eject it completely.
Step 3 (Optional) Install dependencies (normally, Expo will auto run this command)
yarn install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext { | |
buildToolsVersion = "27.0.3" | |
minSdkVersion = 16 | |
compileSdkVersion = 28 | |
targetSdkVersion = 27 | |
supportLibVersion = "27.1.1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A file must have structure as below: | |
* { | |
* name: 'file' | |
* content: { | |
* uri: 'file://abc', | |
* data: 'file body', only use uri or data | |
* name: 'avatar.jpg', | |
* type: 'image/jpg' | |
* } |