-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix build error with Stripe package without applying patches * fixed login and register * fix safearea on modals * fix edit place error and refactor codes * fixed cart and store locations * removed price divide * fixed tab bar deprecation * fixed cart stack options * fixed react-navigation deprecations * fixed store and photos screen crash * removed stripe integration * removed init stripe * fixed store locations on store picker * format codes * fixed category sheet visiblity * fixed action sheet visiblities * improved network header ui * improved ui of network and store screen * Fix UI layout issues * bump storefront sdk version * Refactor UI headers in multiple screens * Add currency and number formatting utils * Refactor CartCheckoutPanel, CartScreen, CheckoutScreen, and OrderCompletedScreen * Fix saved place header * Add Stripe payment gateway * Fix tip input currency * Refactor and improve ui checkout screen * Add StripePaymentSheet * Update translations and add some utility functions * Add stripe payment method * Fixed android build error * Update iOS build command to use --mode flag * Removed deprecated dexing transform property * Add Xcode setup action * Update Xcode version in CI workflow * Update iOS build command
- Loading branch information
1 parent
666e119
commit 62638e5
Showing
103 changed files
with
46,785 additions
and
21,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
root: true, | ||
extends: '@react-native-community', | ||
rules: { | ||
'react/prop-types': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,111 @@ | ||
name: Storefront App CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] # Trigger for PRs to main branch | ||
pull_request: | ||
branches: [main] # Trigger for PRs to main branch | ||
|
||
env: | ||
FLEETBASE_KEY: ${{ secrets.FLEETBASE_KEY }} | ||
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }} | ||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | ||
FLEETBASE_KEY: ${{ secrets.FLEETBASE_KEY }} | ||
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }} | ||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | ||
|
||
jobs: | ||
install_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
android_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Generate google-services.json | ||
env: | ||
GOOGLE_SERVICES_JSON: ${{ secrets.STOREFRONT_GOOGLE_SERVICES_JSON }} | ||
run: | | ||
echo "$GOOGLE_SERVICES_JSON" > google-services.json | ||
mkdir -p android/app/src | ||
mv google-services.json android/app/src | ||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'oracle' | ||
java-version: '17' | ||
|
||
- name: Cache Gradle Wrapper | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Cache Gradle Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-caches- | ||
- name: Make Gradlew Executable | ||
run: cd android && chmod +x ./gradlew | ||
|
||
- name: Build Android | ||
run: cd android && ./gradlew assembleDebug | ||
env: | ||
JVM_OPTS: '-Xmx4096m' | ||
|
||
ios_build: | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install CocoaPods | ||
run: sudo gem install cocoapods | ||
|
||
- name: Install iOS pods | ||
run: cd ios && pod install | ||
|
||
- name: Build iOS | ||
run: npx react-native run-ios --configuration Release | ||
install_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
android_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Generate google-services.json | ||
env: | ||
GOOGLE_SERVICES_JSON: ${{ secrets.STOREFRONT_GOOGLE_SERVICES_JSON }} | ||
run: | | ||
echo "$GOOGLE_SERVICES_JSON" > google-services.json | ||
mkdir -p android/app/src | ||
mv google-services.json android/app/src | ||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'oracle' | ||
java-version: '17' | ||
|
||
- name: Cache Gradle Wrapper | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
|
||
- name: Cache Gradle Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-caches- | ||
- name: Make Gradlew Executable | ||
run: cd android && chmod +x ./gradlew | ||
|
||
- name: Build Android | ||
run: cd android && ./gradlew assembleDebug | ||
env: | ||
JVM_OPTS: '-Xmx4096m' | ||
|
||
ios_build: | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup XCode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install dependencies | ||
run: npm install -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install CocoaPods | ||
run: sudo gem install cocoapods | ||
|
||
- name: Install iOS pods | ||
run: cd ios && pod install | ||
|
||
- name: Build iOS | ||
run: npx react-native run-ios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = { | ||
bracketSpacing: true, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
tabWidth: 4, | ||
semi: true, | ||
printWidth: 190, | ||
bracketSpacing: true, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
tabWidth: 4, | ||
semi: true, | ||
printWidth: 190, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.