Skip to content

Commit

Permalink
chore: 🤖 release
Browse files Browse the repository at this point in the history
  • Loading branch information
reime005 committed Nov 15, 2020
1 parent cbf4993 commit 292af73
Show file tree
Hide file tree
Showing 65 changed files with 2,284 additions and 242 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
APP_VERSION_CODE=1
APP_VERSION_CODE=REPLACE_BUILD_NUMBER
APP_VERSION_NAME=0.0.1
APP_ID=com.reime005.spaceseek
APP_NAME=Space Seek
GOOGLE_MAPS_KEY=
GOOGLE_MAPS_KEY=REPLACE_MAPS_KEY
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

e2e/
node_modules/
scripts/
107 changes: 105 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,110 @@ name: CI
on: [push, pull_request]

jobs:
deploy:
setup-and-tests:
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && contains(github.event.head_commit.message, 'release-android')"
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Specify node version
uses: actions/checkout@v1
with:
node-version: 12

- name: Caching
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install deps
run: |
yarn --frozen-lockfile
- name: Post Install
env:
GOOGLE_MAPS_KEY_ANDROID: ${{ secrets.GOOGLE_MAPS_KEY_ANDROID }}
run: |
sed -i.bak ''s/REPLACE_BUILD_NUMBER/${GITHUB_RUN_ID}/'' .env
sed -i.bak ''s/REPLACE_MAPS_KEY/${GOOGLE_MAPS_KEY_ANDROID}/'' .env
- name: Lint
run: |
yarn lint:ci
- name: Unit Tests
run: |
yarn test
# deploy-ios:
# needs: setup

# - name: Lint
# run: |
# yarn lint

# - name: Unit Tests
# run: |
# yarn test


# - name: Fastlane setup
# run: |
# cd ios; bundle install; cd -
# cd android; bundle install

# - name: Detox setup
# run: |
# brew tap wix/brew
# brew install applesimutils

# deploy-ios:
# ...


# - name: Deploy iOS & Upload to TestFlight
# if: ""
# working-directory: ios
# env:
# MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
# MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
# FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
# FASTLANE_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
# PAT: ${{ secrets.PAT }}
# run: |
# bundle exec fastlane ios beta_ci


# emu-android:

# - name: Use specific Java version for sdkmanager to work
# uses: joschi/setup-jdk@v1
# with:
# java-version: 'openjdk8'
# architecture: 'x64'

# - name: Download Android Emulator Image
# run: |
# echo y | sudo $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-29;google_apis;x86" > /dev/null
# $ANDROID_HOME/tools/bin/avdmanager -s create avd -n emu -k "system-images;android-29;google_apis;x86" -b "x86" -c 512M -d "Nexus S" -f

# deploy-android:
# ...

# - name: Deploy Android Bundle & Upload to Internal Test Track
# working-directory: android
# env:
# ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
# AT: ${{ secrets.ANDROID_TOKEN }}
# ANDROID_KEYSTORE_PROPERTIES: ${{ secrets.ANDROID_KEYSTORE_PROPERTIES }}
# run: |
# echo "$KEYSTORE" | base64 -d > ./release.keystore
# echo "$AT" | base64 -d > ./play.json
# echo "$ANDROID_KEYSTORE_PROPERTIES" | base64 -d > ./keystore.properties
# bundle exec fastlane android internal
# rm -f ~/play_api_key_rn_spaceviewer.json
# rm -f app/release.keystore
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ buck-out/

ios/tmp.xcconfig
*.hprof

keystore.properties
*.app*zip
play.json
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# React Native Animated App Base Template
# Space Seek - View Space Data

![ReactIcon](./React-icon.svg)
![CI status](https://github.com/reime005/spaceseek/workflows/CI/badge.svg)

This template provides the basic and necessary things you need for a React Native app.
!Work in Progress!

# Features
This is a rewrite of ['Space Viewer - Rocket Infos'](https://github.com/reime005/react-native-spaceviewer).

You can see lots of information about rocket space launches from all over the world! Want to know at which location it will launch? Or do you want to see its live stream? All the information are bundled in this app.

This includes rocket launches from SpaceX, NASA, ROSCOSMOS, ISRO, ULA and many more!

# Tech Stack & Credits

- 🚀 API via [The Space Devs](https://thespacedevs.com)
- ⚙️ Built with [Typescript](https://www.typescriptlang.org/)
- ⚡ More comprehensive animations via [react-native-reanimated](https://github.com/software-mansion/react-native-reanimated)
- 🎨 Theming and component styling via [styled-components](https://styled-components.com/)
Expand All @@ -18,8 +25,8 @@ This template provides the basic and necessary things you need for a React Nativ
- 🗿 Persistence via [async-storage](https://github.com/react-native-async-storage/async-storage)
- 🖥 Running lint & tests on staged git files (pre-commit) via [lint-staged](https://github.com/okonet/lint-staged) and [husky](https://github.com/typicode/husky)
- ♦️ Icons from [material](https://material.io/resources/icons/?style=outline) and [feathericons](https://feathericons.com)
- ℹ️ Simple, safe and fetch-cancellable effects powered by generator functions via [@n1ru4l/use-async-effect](https://github.com/n1ru4l/use-async-effect)
- ℹ️ Styled components testing via [jest-styled-components](https://github.com/styled-components/jest-styled-components)
- ℹ️ Auto generated, typescript based axios client via [swagger-axios-codegen](https://github.com/Manweill/swagger-axios-codegen)
- ℹ️ Hermes enabled

# Build & Run
Expand Down
7 changes: 4 additions & 3 deletions __tests__/Basic-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import 'jest-styled-components/native';

import renderer from 'react-test-renderer';

import { BaseText } from '../src/components/Basic/Basic.styled';
import { RegularText } from '../src/components/Basic/Basic';
import { darkTheme } from '../src/config/theme';

it('Base Text renders correctly', async () => {
const tree = renderer
.create(<BaseText theme={{ mainFont: 'grey' }} />)
.create(<RegularText theme={darkTheme}>TEST</RegularText>)
.toJSON();
expect(tree).toHaveStyleRule('color', 'grey');
expect(tree).toHaveStyleRule('color', '#fff');
expect(tree).toHaveStyleRule('fontSize', 14);
});
3 changes: 3 additions & 0 deletions android/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
180 changes: 180 additions & 0 deletions android/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
atomos (0.1.3)
aws-eventstream (1.1.0)
aws-partitions (1.393.0)
aws-sdk-core (3.109.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.39.0)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.84.1)
aws-sdk-core (~> 3, >= 3.109.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.2.2)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.0.3)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.6)
highline (~> 1.7.2)
declarative (0.0.20)
declarative-option (0.1.0)
digest-crc (0.6.1)
rake (~> 13.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.1)
excon (0.78.0)
faraday (1.1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
faraday_middleware (1.0.0)
faraday (~> 1.0)
fastimage (2.2.0)
fastlane (2.167.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
aws-sdk-s3 (~> 1.0)
babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander-fastlane (>= 4.4.6, < 5.0.0)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-api-client (>= 0.37.0, < 0.39.0)
google-cloud-storage (>= 1.15.0, < 2.0.0)
highline (>= 1.7.2, < 2.0.0)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (~> 2.0.0)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
slack-notifier (>= 2.0.0, < 3.0.0)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
google-api-client (0.38.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.9)
httpclient (>= 2.8.1, < 3.0)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.12)
google-cloud-core (1.5.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.4.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.0.1)
google-cloud-storage (1.29.1)
addressable (~> 2.5)
digest-crc (~> 0.4)
google-api-client (~> 0.33)
google-cloud-core (~> 1.2)
googleauth (~> 0.9)
mini_mime (~> 1.0)
googleauth (0.14.0)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.14)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
json (2.3.1)
jwt (2.2.2)
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.0.2)
multi_json (1.15.0)
multipart-post (2.0.0)
nanaimo (0.3.0)
naturally (2.2.0)
os (1.1.1)
plist (3.5.0)
public_suffix (4.0.6)
rake (13.0.1)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rouge (2.0.7)
ruby2_keywords (0.0.2)
rubyzip (2.3.0)
security (0.1.3)
signet (0.14.0)
addressable (~> 2.3)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.8)
CFPropertyList
naturally
slack-notifier (2.3.2)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
tty-cursor (0.7.1)
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
word_wrap (1.0.0)
xcodeproj (1.19.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
ruby

DEPENDENCIES
fastlane

BUNDLED WITH
2.1.4
Loading

0 comments on commit 292af73

Please sign in to comment.