Skip to content

Commit 0c838ef

Browse files
chore: remove native folders from pos sample (#257)
1 parent 3cf1b4f commit 0c838ef

File tree

97 files changed

+175
-4804
lines changed

Some content is hidden

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

97 files changed

+175
-4804
lines changed

.github/workflows/release-android-base.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ on:
4141
required: false
4242
default: 'yarn'
4343
type: string
44+
is-expo-project:
45+
description: "Is Expo project"
46+
required: false
47+
default: false
48+
type: boolean
4449
secrets:
4550
project-id:
4651
description: 'Reown Cloud ID'
@@ -87,6 +92,12 @@ jobs:
8792
root-path: ${{ inputs.root-path }}
8893
package-manager: ${{ inputs.package-manager }}
8994

95+
- name: Expo Prebuild
96+
if: ${{ inputs.is-expo-project == true }}
97+
run: |
98+
cd ${{ inputs.root-path }}
99+
npx expo prebuild --platform android
100+
90101
- name: Install Java 17
91102
uses: actions/setup-java@v3
92103
with:
@@ -134,8 +145,8 @@ jobs:
134145
path: |
135146
~/.gradle/caches
136147
~/.gradle/wrapper
137-
${{ inputs.root-path }}/android/.gradle
138-
key: ${{ runner.os }}-gradle-${{ inputs.name }}-${{ hashFiles(format('{0}/android/**/*.gradle*', inputs.root-path), format('{0}/android/**/gradle-wrapper.properties', inputs.root-path)) }}
148+
${{ inputs.is-expo-project == false && format('{0}/android/.gradle', inputs.root-path) || '' }}
149+
key: ${{ runner.os }}-gradle-${{ inputs.name }}-${{ inputs.is-expo-project == true && hashFiles(format('{0}/package.json', inputs.root-path), format('{0}/app.json', inputs.root-path)) || hashFiles(format('{0}/android/**/*.gradle*', inputs.root-path), format('{0}/android/**/gradle-wrapper.properties', inputs.root-path)) }}
139150
restore-keys: |
140151
${{ runner.os }}-gradle-${{ inputs.name }}-
141152

.github/workflows/release-dapp-ios-internal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
with:
2020
name: AppKit React Native
2121
root-path: 'dapps/W3MWagmi'
22-
xcode-project-path: 'dapps/W3MWagmi/ios/W3MWagmi.xcodeproj'
23-
xcode-workspace-path: 'dapps/W3MWagmi/ios/W3MWagmi.xcworkspace'
2422
release-type: 'internal'
2523
scheme-name: 'W3MWagmi Internal'
2624
bundle-id: 'com.walletconnect.web3modal.rnsample.internal'

.github/workflows/release-dapp-ios-production.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
with:
2020
name: AppKit React Native
2121
root-path: 'dapps/W3MWagmi'
22-
xcode-project-path: 'dapps/W3MWagmi/ios/W3MWagmi.xcodeproj'
23-
xcode-workspace-path: 'dapps/W3MWagmi/ios/W3MWagmi.xcworkspace'
2422
release-type: 'production'
2523
scheme-name: 'W3MWagmi'
2624
bundle-id: 'com.walletconnect.web3modal.rnsample'

.github/workflows/release-ios-base.yaml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ on:
1515
description: "Path of the react-native project"
1616
required: true
1717
type: string
18-
xcode-project-path:
19-
description: "Path of the Xcode project"
20-
required: true
21-
type: string
22-
xcode-workspace-path:
23-
description: "Path of the Xcode workspace"
24-
required: true
25-
type: string
2618
release-type:
2719
description: "Release type of the project (debug/internal/production)"
2820
type: string
@@ -65,6 +57,11 @@ on:
6557
description: "TestFlight groups"
6658
required: false
6759
type: string
60+
is-expo-project:
61+
description: "Is Expo project"
62+
required: false
63+
default: false
64+
type: boolean
6865
secrets:
6966
project-id:
7067
description: "WalletConnect Cloud ID"
@@ -122,7 +119,26 @@ jobs:
122119
root-path: ${{ inputs.root-path }}
123120
package-manager: ${{ inputs.package-manager }}
124121

122+
- name: Expo Prebuild
123+
if: ${{ inputs.is-expo-project == true }}
124+
run: |
125+
cd ${{ inputs.root-path }}
126+
npx expo prebuild --platform ios
127+
128+
- name: Set Xcode paths
129+
run: |
130+
# Find the .xcodeproj and .xcworkspace (works for both Expo and non-Expo)
131+
XCODEPROJ=$(find "${{ inputs.root-path }}/ios" -maxdepth 1 -name "*.xcodeproj" -print -quit)
132+
XCWORKSPACE=$(find "${{ inputs.root-path }}/ios" -maxdepth 1 -name "*.xcworkspace" -print -quit)
133+
134+
echo "Found Xcode project: $XCODEPROJ"
135+
echo "Found Xcode workspace: $XCWORKSPACE"
136+
137+
echo "XCODE_PROJECT_PATH=$XCODEPROJ" >> "$GITHUB_ENV"
138+
echo "XCWORKSPACE_PATH=$XCWORKSPACE" >> "$GITHUB_ENV"
139+
125140
- name: Set podfile path
141+
if: ${{ inputs.is-expo-project == false }}
126142
id: podfile-hash
127143
run: |
128144
echo "Root path: ${{ inputs.root-path }}"
@@ -132,6 +148,7 @@ jobs:
132148
133149
- name: Cache pods
134150
id: pods-cache
151+
if: ${{ inputs.is-expo-project == false }}
135152
uses: actions/cache@v4
136153
with:
137154
path: ${{ inputs.root-path }}/ios/Pods
@@ -187,8 +204,8 @@ jobs:
187204
MATCH_GIT_URL: ${{ secrets.match-git-url }}
188205
PODFILE_PATH: ${{ inputs.root-path }}/ios/Podfile
189206
SCHEME: ${{ inputs.scheme-name }}
190-
XCODE_PROJECT_PATH: ${{ inputs.xcode-project-path }}
191-
XCWORKSPACE_PATH: ${{ inputs.xcode-workspace-path }}
207+
XCODE_PROJECT_PATH: ${{ env.XCODE_PROJECT_PATH }}
208+
XCWORKSPACE_PATH: ${{ env.XCWORKSPACE_PATH }}
192209
PROJECT_TYPE: ${{ inputs.project-type }}
193210
RELEASE_TYPE: ${{ inputs.release-type }}
194211
BRANCH_NAME: ${{ github.ref_name }}

.github/workflows/release-pos-android.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
output-path: 'dapps/pos-app/android/app/build/outputs/apk/release/app-release.apk'
1818
env-file-path: 'dapps/pos-app/.env'
1919
package-manager: 'npm'
20+
is-expo-project: true
2021
secrets:
2122
project-id: ${{ vars.POS_APP_PROJECT_ID }}
2223
relay-url: ${{ secrets.ENV_RELAY_URL }}

.github/workflows/release-pos-ios.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ jobs:
1212
with:
1313
name: Mobile POS React Native
1414
root-path: 'dapps/pos-app'
15-
xcode-project-path: 'dapps/pos-app/ios/mobilepos.xcodeproj'
16-
xcode-workspace-path: 'dapps/pos-app/ios/mobilepos.xcworkspace'
1715
release-type: 'production'
18-
scheme-name: 'mobilepos'
16+
scheme-name: 'WPay'
1917
bundle-id: 'com.reown.mobilepos'
2018
apple-id: '6754570257'
2119
project-type: 'dapp'
2220
env-file-path: 'dapps/pos-app/.env'
2321
package-manager: 'npm'
2422
testflight-groups: 'External'
23+
is-expo-project: true
2524
secrets:
2625
project-id: ${{ vars.POS_APP_PROJECT_ID }}
2726
sentry-file: ${{ secrets.POS_SENTRY_FILE }}

.github/workflows/release-wallet-ios-internal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
with:
2020
name: WalletKit React Native
2121
root-path: 'wallets/rn_cli_wallet'
22-
xcode-project-path: 'wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcodeproj'
23-
xcode-workspace-path: 'wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcworkspace'
2422
release-type: 'internal'
2523
scheme-name: 'RNWallet-Internal'
2624
bundle-id: 'com.walletconnect.web3wallet.rnsample.internal'

.github/workflows/release-wallet-ios-production.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
with:
2020
name: WalletKit React Native
2121
root-path: 'wallets/rn_cli_wallet'
22-
xcode-project-path: 'wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcodeproj'
23-
xcode-workspace-path: 'wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcworkspace'
2422
release-type: 'production'
2523
scheme-name: 'RNWallet'
2624
bundle-id: 'com.walletconnect.web3wallet.rnsample'

dapps/pos-app/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ yarn-error.*
3939
app-example
4040

4141
.env.local
42+
43+
ios/*
44+
android/*
45+
.env.local

dapps/pos-app/android/.gitignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)