Skip to content

Commit a06db53

Browse files
authored
Redesign (v2) (#6)
* Add fastlane * Add CI workflows * Update ids * Enable Hermes * Revert "Enable Hermes" This reverts commit 780e1db. * Update Gemfile.lock * Set Provisioning Profile Manual * Update Fastfile * Upgrade a whole lotta dependencies * Update package.json * Update yarn.lock * Patch Reanimated for Cache "assign" bug Issue: software-mansion/react-native-reanimated#2329 * Run with `.log` quality * run lint/tsc * Update tsconfig.json * Update PaletteFrameProcessorPlugin.swift * Fix TS errors * Install GH Actions Formatter * Change Android bundle ID to com.mrousavy.colorwaver * Update package.json * Install `@babel/preset-typescript` * ⚠️ SHOULD REVERT SOON: Disable Hermes * Pass quality to native plugin * Specify quality on Android too * Add `packagingOptions` to pick first .so * Use string (union type) for quality * Use `isActive` prop * Haptic Feedback * Move to `utils/` * Update react-native-reanimated+2.3.0-alpha.3.patch * Use frame processor suggestions * Deactivate on app state change * Use `lowest` resolution * fix RNGH * scale on press * Add static safe area insets * Pass animation duration * size * fix * Update App.tsx * Animate Status Bar * Fix RNGH installation on Android * Hide android System UI * fix height * Set `UIViewControllerBasedStatusBarAppearance` to YES * Revert "Set `UIViewControllerBasedStatusBarAppearance` to YES" This reverts commit 8f64d68. * Fix status bar props not applying * separate holding with page inactive
1 parent da955e5 commit a06db53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2237
-368
lines changed

.github/workflows/build-android.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build Android
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/build-android.yml'
9+
- 'android/**'
10+
- 'yarn.lock'
11+
pull_request:
12+
paths:
13+
- '.github/workflows/build-android.yml'
14+
- 'android/**'
15+
- 'yarn.lock'
16+
17+
jobs:
18+
build:
19+
name: Build Android App
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup JDK 1.8
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 1.8
28+
29+
- name: Get yarn cache directory path
30+
id: yarn-cache-dir-path
31+
run: echo "::set-output name=dir::$(yarn cache dir)"
32+
- name: Restore node_modules from cache
33+
uses: actions/cache@v2
34+
id: yarn-cache
35+
with:
36+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
37+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-yarn-
40+
- name: Install node_modules
41+
run: yarn install --frozen-lockfile
42+
43+
- name: Restore Gradle cache
44+
uses: actions/cache@v2
45+
with:
46+
path: |
47+
~/.gradle/caches
48+
~/.gradle/wrapper
49+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
50+
restore-keys: |
51+
${{ runner.os }}-gradle-
52+
- name: Run Gradle Build for android/
53+
run: cd android && ./gradlew assembleDebug --build-cache && cd ..

.github/workflows/build-ios.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build iOS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/build-ios.yml'
9+
- 'ios/**'
10+
- '*.podspec'
11+
- 'ios/**'
12+
pull_request:
13+
paths:
14+
- '.github/workflows/build-ios.yml'
15+
- 'ios/**'
16+
- '*.podspec'
17+
- 'ios/**'
18+
19+
jobs:
20+
build:
21+
name: Build iOS App
22+
runs-on: macOS-latest
23+
defaults:
24+
run:
25+
working-directory: ios
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Get yarn cache directory path
30+
id: yarn-cache-dir-path
31+
run: echo "::set-output name=dir::$(yarn cache dir)"
32+
- name: Restore node_modules from cache
33+
uses: actions/cache@v2
34+
id: yarn-cache
35+
with:
36+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
37+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-yarn-
40+
- name: Install node_modules for
41+
run: yarn install --frozen-lockfile --cwd ..
42+
43+
- name: Restore buildcache
44+
uses: mikehardy/buildcache-action@v1
45+
continue-on-error: true
46+
47+
- name: Setup Ruby (bundle)
48+
uses: ruby/setup-ruby@v1
49+
with:
50+
ruby-version: 2.6
51+
bundler-cache: true
52+
working-directory: ios
53+
54+
- name: Restore Pods cache
55+
uses: actions/cache@v2
56+
with:
57+
path: |
58+
ios/Pods
59+
~/Library/Caches/CocoaPods
60+
~/.cocoapods
61+
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
62+
restore-keys: |
63+
${{ runner.os }}-pods-
64+
- name: Install Pods
65+
run: bundle exec pod check || bundle exec pod install
66+
- name: Install xcpretty
67+
run: gem install xcpretty
68+
- name: Build App
69+
run: "set -o pipefail && xcodebuild \
70+
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
71+
-derivedDataPath build -UseModernBuildSystem=YES \
72+
-workspace Colorwaver.xcworkspace \
73+
-scheme Colorwaver \
74+
-sdk iphonesimulator \
75+
-configuration Debug \
76+
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
77+
build \
78+
CODE_SIGNING_ALLOWED=NO | xcpretty"

.github/workflows/release-android.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release Android App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release Android App
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: android
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
- name: Restore node_modules from cache
22+
uses: actions/cache@v2
23+
id: yarn-cache
24+
with:
25+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
- name: Install node_modules
30+
run: yarn install --frozen-lockfile --cwd ..
31+
32+
- name: Restore buildcache
33+
uses: mikehardy/buildcache-action@v1
34+
continue-on-error: true
35+
36+
- name: Setup Ruby (bundle)
37+
uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: 2.6
40+
bundler-cache: true
41+
working-directory: android
42+
43+
- name: Run fastlane
44+
run: bundle exec fastlane release

.github/workflows/release-ios.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release iOS App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release iOS App
11+
runs-on: macOS-latest
12+
defaults:
13+
run:
14+
working-directory: ios
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
- name: Restore node_modules from cache
22+
uses: actions/cache@v2
23+
id: yarn-cache
24+
with:
25+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
- name: Install node_modules
30+
run: yarn install --frozen-lockfile --cwd ..
31+
32+
- name: Restore buildcache
33+
uses: mikehardy/buildcache-action@v1
34+
continue-on-error: true
35+
36+
- name: Setup Ruby (bundle)
37+
uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: 2.6
40+
bundler-cache: true
41+
working-directory: ios
42+
43+
- name: Restore Pods cache
44+
uses: actions/cache@v2
45+
with:
46+
path: |
47+
ios/Pods
48+
~/Library/Caches/CocoaPods
49+
~/.cocoapods
50+
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
51+
restore-keys: |
52+
${{ runner.os }}-pods-
53+
- name: Install Pods
54+
run: bundle exec pod check || bundle exec pod install
55+
56+
- name: Run fastlane
57+
run: bundle exec fastlane release

.github/workflows/validate-js.yml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Validate JS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/validate-js.yml'
9+
- 'src/**'
10+
- '*.json'
11+
- '*.js'
12+
- '*.lock'
13+
pull_request:
14+
paths:
15+
- '.github/workflows/validate-js.yml'
16+
- 'src/**'
17+
- '*.json'
18+
- '*.js'
19+
- '*.lock'
20+
21+
jobs:
22+
compile:
23+
name: Compile JS (tsc)
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Install reviewdog
29+
uses: reviewdog/action-setup@v1
30+
31+
- name: Get yarn cache directory path
32+
id: yarn-cache-dir-path
33+
run: echo "::set-output name=dir::$(yarn cache dir)"
34+
- name: Restore node_modules from cache
35+
uses: actions/cache@v2
36+
id: yarn-cache
37+
with:
38+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
39+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-yarn-
42+
43+
- name: Install node_modules
44+
run: yarn install --frozen-lockfile
45+
46+
- name: Run TypeScript # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m
47+
run: |
48+
yarn typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
49+
env:
50+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
lint:
53+
name: Lint JS (eslint, prettier)
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v2
57+
58+
- name: Get yarn cache directory path
59+
id: yarn-cache-dir-path
60+
run: echo "::set-output name=dir::$(yarn cache dir)"
61+
- name: Restore node_modules from cache
62+
uses: actions/cache@v2
63+
id: yarn-cache
64+
with:
65+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
66+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
67+
restore-keys: |
68+
${{ runner.os }}-yarn-
69+
70+
- name: Install node_modules
71+
run: yarn install --frozen-lockfile
72+
73+
- name: Run ESLint
74+
run: yarn lint -f @jamesacarr/github-actions
75+
76+
- name: Run ESLint with auto-fix
77+
run: yarn lint --fix
78+
79+
- name: Verify no files have changed after auto-fix
80+
run: git diff --exit-code HEAD

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

android/Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"

0 commit comments

Comments
 (0)