Skip to content

Commit

Permalink
fix: broken react native auto deployment (#34)
Browse files Browse the repository at this point in the history
* chore: attempt to increase compile sdk in the jwt module

* chore: attempt to align with new ios appstore requirements

fastlane/fastlane#20741

* chore: temporarily test gh workflow for rn fix

* chore: simply updating twirp transport package to get an auto deployment run

* chore: set env variable for ios in fastlane

* Revert "chore: temporarily test gh workflow for rn fix"

This reverts commit 1648d8d.
  • Loading branch information
santhoshvai committed Oct 20, 2022
1 parent e6afafc commit 5bb89b3
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/react-native-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: React Native Dogfood Release
on:
push:
paths:
- "packages/react-native-dogfood/**"
- 'packages/react-native-dogfood/**'
branches:
- main

Expand Down Expand Up @@ -74,8 +74,8 @@ jobs:
bundler-cache: true
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
distribution: 'zulu'
java-version: '11'
check-latest: true
- name: Install Yarn dependencies
uses: nick-invision/retry@v2
Expand Down
19 changes: 19 additions & 0 deletions .yarn/patches/react-native-pure-jwt-npm-3.0.1-3e5e2c9059.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/android/build.gradle b/android/build.gradle
index 789f6db5a8b6e9a832d9987c0ad8fce935632677..eb310d985e5e450c92e121b854984ed84f9da4a1 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -12,12 +12,11 @@ buildscript {
apply plugin: 'com.android.library'

android {
- compileSdkVersion 28
- buildToolsVersion "23.0.1"
+ compileSdkVersion 32

defaultConfig {
minSdkVersion 16
- targetSdkVersion 22
+ targetSdkVersion 32
versionCode 3
versionName "2.0.1"
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
},
"resolutions": {
"react-native-pure-jwt@^3.0.1": "patch:react-native-pure-jwt@npm%3A3.0.1#./.yarn/patches/react-native-pure-jwt-npm-3.0.1-3e5e2c9059.patch"
}
}
2 changes: 2 additions & 0 deletions packages/react-native-dogfood/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ platform :ios do
output_directory: "./dist",
)

ENV['ITMSTRANSPORTER_FORCE_ITMS_PACKAGE_UPLOAD'] = 'true'

begin
upload_to_testflight(
groups: ['Dev Testers', 'Stream Testers'],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-dogfood/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint": "eslint ."
},
"dependencies": {
"@protobuf-ts/twirp-transport": "^2.8.0",
"@protobuf-ts/twirp-transport": "^2.8.1",
"@react-native-async-storage/async-storage": "^1.17.10",
"@react-native-clipboard/clipboard": "^1.11.1",
"@react-navigation/native": "^6.0.13",
Expand Down
15 changes: 12 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3566,7 +3566,7 @@ __metadata:
languageName: node
linkType: hard

"@protobuf-ts/twirp-transport@npm:^2.8.0, @protobuf-ts/twirp-transport@npm:^2.8.1":
"@protobuf-ts/twirp-transport@npm:^2.8.1":
version: 2.8.1
resolution: "@protobuf-ts/twirp-transport@npm:2.8.1"
dependencies:
Expand Down Expand Up @@ -4169,7 +4169,7 @@ __metadata:
"@babel/runtime": ^7.12.5
"@protobuf-ts/plugin": ^2.8.0
"@protobuf-ts/protoc": ^2.8.0
"@protobuf-ts/twirp-transport": ^2.8.0
"@protobuf-ts/twirp-transport": ^2.8.1
"@react-native-async-storage/async-storage": ^1.17.10
"@react-native-clipboard/clipboard": ^1.11.1
"@react-native-community/eslint-config": ^2.0.0
Expand Down Expand Up @@ -17567,7 +17567,7 @@ __metadata:
languageName: node
linkType: hard

"react-native-pure-jwt@npm:^3.0.1":
"react-native-pure-jwt@npm:3.0.1":
version: 3.0.1
resolution: "react-native-pure-jwt@npm:3.0.1"
peerDependencies:
Expand All @@ -17576,6 +17576,15 @@ __metadata:
languageName: node
linkType: hard

"react-native-pure-jwt@patch:react-native-pure-jwt@npm%3A3.0.1#./.yarn/patches/react-native-pure-jwt-npm-3.0.1-3e5e2c9059.patch::locator=%40stream-io%2Fvideo-js-root%40workspace%3A.":
version: 3.0.1
resolution: "react-native-pure-jwt@patch:react-native-pure-jwt@npm%3A3.0.1#./.yarn/patches/react-native-pure-jwt-npm-3.0.1-3e5e2c9059.patch::version=3.0.1&hash=555da9&locator=%40stream-io%2Fvideo-js-root%40workspace%3A."
peerDependencies:
react-native: ">=0.41.2"
checksum: fd9452acfa80f7777c41bdf792cb560e8044125708e1e5a61c478d9e8da283c40e9c3769900d4a1a1d7f7fc58e9e6025feefaf07f48b6a92bd698b3363d47176
languageName: node
linkType: hard

"react-native-safe-area-context@npm:^4.4.1":
version: 4.4.1
resolution: "react-native-safe-area-context@npm:4.4.1"
Expand Down

1 comment on commit 5bb89b3

@vercel
Copy link

@vercel vercel bot commented on 5bb89b3 Oct 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@santhoshvai is attempting to deploy a commit to the GetStreamio Team on Vercel.

To accomplish this, @santhoshvai needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Please sign in to comment.