Skip to content

Instantly share code, notes, and snippets.

View tjkang's full-sized avatar

TJ Kang tjkang

  • Seoul, South Korea
View GitHub Profile
🌞 Morning 117 commits ███████▎░░░░░░░░░░░░░ 34.8%
🌆 Daytime 74 commits ████▌░░░░░░░░░░░░░░░░ 22.0%
🌃 Evening 15 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.5%
🌙 Night 130 commits ████████▏░░░░░░░░░░░░ 38.7%
aliases:
# Cache Management
- &restore-yarn-cache
keys:
- yarn-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
# Fallback in case checksum fails
- yarn-{{ arch }}-{{ .Branch }}-
# Fallback in case this is a first-time run on a fork
- yarn-{{ arch }}-master-
- &save-yarn-cache
@tjkang
tjkang / config.local.yml
Created April 6, 2018 06:56
yml for android with circleci 2.0(dropbox)
version: 2
jobs:
android:
working_directory: ~/project
environment:
GRADLE_PROPERTIES_URL: https://www.dropbox.com/s/..../gradle.properties?dl=0
KEYSTORE_DOWNLOAD_URL: https://www.dropbox.com/s/..../my-release-key.keystore?dl=0
docker:
- image: circleci/android:api-27-node8-alpha
@tjkang
tjkang / config.local.yml
Created April 6, 2018 06:20
yml for android with circleci 2.0
version: 2
jobs:
android:
working_directory: ~/project
docker:
- image: circleci/android:api-27-node8-alpha
steps:
- checkout:
@tjkang
tjkang / Fastfile
Created April 6, 2018 05:26
Fastfile for iOS
....
desc "Submit a new Beta Build to crashlytics"
desc "This will also make sure the profile is up to date"
lane :beta do |values|
# Before calling match, we make sure all our devices are registered on the Apple Developer Portal
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
default_keychain: true,
unlock: true,
@tjkang
tjkang / .travis.xml
Created April 6, 2018 02:57
travis.xml for iOS
cache:
yarn: true
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules
branches:
only:
- beta
git_url "git@github.com:***/certificates.git" # ssh key
type "development" # The default type, can be: appstore, adhoc, enterprise or development
app_identifier "com.kangsta.smapleApp"
username "tj@***.com" # Your Apple Developer Portal username
@tjkang
tjkang / Fastfile
Created April 6, 2018 01:36
Fastfile for android
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do |values|
# Adjust the `build_type` and `flavor` params as needed to build the right APK for your setup
emails = values[:test_email] ? values[:test_email] : ['tj@abc.com'] # You can list more emails here
groups = values[:test_email] ? nil : nil # You can define groups on the web and reference them here
gradle(
task: "assembleRelease",
.....
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
.......
@tjkang
tjkang / .travis.xml
Last active April 6, 2018 01:28
travis.xml for android
language: android
jdk: oraclejdk8
sudo: required
dist: precise
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
yarn: true
directories: