Skip to content

Commit

Permalink
Merge pull request #14 from fleetbase/fix-podfile
Browse files Browse the repository at this point in the history
Fix podfile
  • Loading branch information
roncodes authored Dec 25, 2023
2 parents 4482b67 + e27a873 commit d336629
Show file tree
Hide file tree
Showing 83 changed files with 38,947 additions and 11,652 deletions.
6 changes: 0 additions & 6 deletions .buckconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
extends: '@react-native',
};
67 changes: 0 additions & 67 deletions .flowconfig

This file was deleted.

107 changes: 107 additions & 0 deletions .github/workflows/react-native-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Fleetbase Navigator App CI

on:
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 }}

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.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: Run Jetify
run: npx jetify

- 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

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
22 changes: 16 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OSX
#
.DS_Store
*.DS_Store

# Xcode
#
Expand All @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -33,6 +34,9 @@ android/*.hprof
android/app/build
*.apk
*.aab
.cxx/
*.keystore
!debug.keystore

# node.js
#
Expand All @@ -56,9 +60,10 @@ buck-out/
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle
Expand All @@ -67,15 +72,20 @@ buck-out/
/ios/Pods/
/vendor/bundle/


# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
# testing
/coverage

# react-native-config codegen
ios/tmp.xcconfig

# Credentials/ Config
#
android/app/google-services.json

# Storefront assets/configurations
# App Configuration Files
#
assets/*
config/app.js
config/interface.js
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.4
2.7.4
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.compile.nullAnalysis.mode": "automatic"
}
Loading

0 comments on commit d336629

Please sign in to comment.