Skip to content

Instantly share code, notes, and snippets.

View TomGranot's full-sized avatar
👋
My e-mail is open - use it! ([email protected])

Tom Granot TomGranot

👋
My e-mail is open - use it! ([email protected])
View GitHub Profile
@TomGranot
TomGranot / shopify_app_css.css
Created March 29, 2020 13:14
Shopify App Dev From Scratch - HTML Wiring V2
/* A lot of the information can be learned from Shopify Polairs */
/* Form elements use the default of the OS */
html {
/* Load system fonts */
font-family: -apple-system, BlinkMacSystemFont, San Francisco, Roboto, Segoe UI, Helvetica Neue, sans-serif;
/* Make type rendering look crisper */
-webkit-font-smoothing: antialiased;
@TomGranot
TomGranot / shopify_app_html_v2.html
Created March 29, 2020 13:07
Shopify App Dev From Scratch - HTML Wiring V2
<html>
<head>
<link rel="stylesheet" href="styles.css">
<title>
Countries We Ship Button
</title>
</head>
<body>
@TomGranot
TomGranot / shopify_app_html.html
Last active March 29, 2020 13:07
Shopify App Dev From Scratch - HTML Wiring
<html>
<head>
<title>
Countries We Ship Button
</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>Countries We Ship To Button</h1>
@TomGranot
TomGranot / push
Last active February 26, 2020 18:58
ForgetMeNot Node-RED Flow
[
{
"id": "dfd248d3.68e5c8",
"type": "tab",
"label": "ForgetMeNot",
"disabled": false,
"info": ""
},
{
"id": "6e222d22.55f4f4",
@TomGranot
TomGranot / config-part-7.yml
Created March 5, 2019 18:13
Config.yml part 7
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
path: app/build/reports
destination: reports
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
path: app/build/test-results
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
@TomGranot
TomGranot / config-part-6.yml
Created March 5, 2019 18:08
Config.yml part 6
- run:
name: Assemble Bundles & Run Tests
command: ./gradlew clean bundleFreeRelease bundlePlusFlavorRelease
- run:
name: Publish Free Beta Version To Play Store
command: ./gradlew publishFreeReleaseBundle
- run:
name: Publish Plus Beta Version To Play Store
command: ./gradlew publishPlusFlavorReleaseBundle
@TomGranot
TomGranot / config-part-5.yml
Created March 5, 2019 18:04
Config.yml part 5
- run:
name: Approve SDK Licenses
# Captures SIGPIPE 141 error but still allow repeating "y" to accept all licenses
command: yes | sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
@TomGranot
TomGranot / config-part-4.yml
Last active March 5, 2019 19:26
Config.yml part 4
- run:
name: Get JSON & GPG Keys From Env-Var
command: |
echo ${PLAYSTORE_SERVICE_KEY} > app/GPLAY_KEY.json
echo -e $GPG_KEY > gpg_key.asc
- run:
name: Import gpg key into gpg, decrypt secrets
command: |
gpg --import gpg_key.asc
gpg --decrypt secrets.tar.gpg > secrets.tar
@TomGranot
TomGranot / config-part-3.yml
Last active March 5, 2019 17:03
Config.yml part 3
- run:
name: Bump Version & Push To Repo
command: |
cd scripts
./version-bumper.sh
printf "\n"
echo "-- Pushing To Github --"
printf "\n"
git config credential.helper 'cache --timeout=120'
git config user.email ${GITHUB_EMAIL}
@TomGranot
TomGranot / config-part-2.yml
Last active March 5, 2019 17:10
Config.yml part 2
steps:
- run:
name: Wait 900 Seconds (15 minutes) for other commits (cherry-picking)
command: sleep 900
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew