Skip to content

Commit

Permalink
🔥 burn leftovers, add switch all axios urls to use apiURL constants f…
Browse files Browse the repository at this point in the history
…or easy stage config switch
  • Loading branch information
thinktapper committed Feb 9, 2023
1 parent 2c5658c commit 62a6f5b
Show file tree
Hide file tree
Showing 18 changed files with 418 additions and 894 deletions.
248 changes: 248 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,251 @@ amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end
ios/.gitignore
ios/.xcode.env
ios/Podfile
ios/Podfile.properties.json
ios/DinderRN/AppDelegate.h
ios/DinderRN/AppDelegate.mm
ios/DinderRN/DinderRN.entitlements
ios/DinderRN/Info.plist
ios/DinderRN/main.m
ios/DinderRN/noop-file.swift
ios/DinderRN/SplashScreen.storyboard
ios/DinderRN/Images.xcassets/Contents.json
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/AppIcon.appiconset/Contents.json
ios/DinderRN/Images.xcassets/AppIcon.appiconset/[email protected]
ios/DinderRN/Images.xcassets/SplashScreen.imageset/Contents.json
ios/DinderRN/Images.xcassets/SplashScreen.imageset/image.png
ios/DinderRN/Images.xcassets/SplashScreenBackground.imageset/Contents.json
ios/DinderRN/Images.xcassets/SplashScreenBackground.imageset/image.png
ios/DinderRN/Supporting/Expo.plist
ios/DinderRN.xcodeproj/project.pbxproj
ios/DinderRN.xcodeproj/xcshareddata/xcschemes/DinderRN.xcscheme
android/.gitignore
android/build.gradle
android/gradle.properties
android/gradlew
android/gradlew.bat
android/settings.gradle
android/app/BUCK
android/app/build_defs.bzl
android/app/build.gradle
android/app/debug.keystore
android/app/proguard-rules.pro
android/app/src/debug/AndroidManifest.xml
android/app/src/debug/java/com/thinktapper/dinder/ReactNativeFlipper.java
android/app/src/main/AndroidManifest.xml
android/app/src/main/java/com/thinktapper/dinder/MainActivity.java
android/app/src/main/java/com/thinktapper/dinder/MainApplication.java
android/app/src/main/java/com/thinktapper/dinder/newarchitecture/MainApplicationReactNativeHost.java
android/app/src/main/java/com/thinktapper/dinder/newarchitecture/components/MainComponentsRegistry.java
android/app/src/main/java/com/thinktapper/dinder/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
android/app/src/main/jni/Android.mk
android/app/src/main/jni/MainApplicationModuleProvider.cpp
android/app/src/main/jni/MainApplicationModuleProvider.h
android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
android/app/src/main/jni/MainComponentsRegistry.cpp
android/app/src/main/jni/MainComponentsRegistry.h
android/app/src/main/jni/OnLoad.cpp
android/app/src/main/res/drawable/rn_edit_text_material.xml
android/app/src/main/res/drawable/splashscreen.xml
android/app/src/main/res/drawable-hdpi/splashscreen_image.png
android/app/src/main/res/drawable-mdpi/splashscreen_image.png
android/app/src/main/res/drawable-xhdpi/splashscreen_image.png
android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png
android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
android/app/src/main/res/values/colors.xml
android/app/src/main/res/values/strings.xml
android/app/src/main/res/values/styles.xml
android/app/src/main/res/values-night/colors.xml
android/gradle/wrapper/gradle-wrapper.jar
android/gradle/wrapper/gradle-wrapper.properties
# Expo
.expo
__generated__
web-build
bare-apps

# macOS
.DS_Store

# Node
node_modules
npm-debug.log
yarn-error.log

# Ruby
.direnv

# Env
.envrc.local

# Emacs
*~

# Vim
.*.swp
.*.swo
.*.swn
.*.swm

# Sublime Text
*.sublime-project
*.sublime-workspace

# Xcode
*.pbxuser
!default.pbxuser
*.xccheckout
*.xcscmblueprint
xcuserdata

# IDEA / Android Studio
*.iml
.gradle
.idea

# Eclipse
.project
.settings

# VSCode
.history/

# Android
*.apk
*.hprof
/android/**/build
/android/**/.cxx
/android/**/local.properties
/android/captures
/android/expoview/libs/ReactAndroid-temp
/android/versioned-react-native/ReactAndroid
/android/versioned-react-native/ReactCommon
/android/versioned-react-native/codegen
/android/versioned-react-native/sdks
ReactAndroid-temp.aar
/android/prebuiltHermes
/android/versioned-abis/**/*.aar

# Tools
jarjar-rules.txt

# Dynamic Macros
/ios/Exponent/Supporting/EXBuildConstants.plist.bak
/ios/Exponent/Supporting/EXBuildConstants.plist.json
/ios/Exponent/Supporting/EXBuildConstants.plist
/ios/Exponent/Supporting/GoogleService-Info.plist
/ios/Exponent/Supporting/Info.plist.bak
/ios/Exponent/Supporting/Info.plist.json
/android/expoview/src/main/java/host/exp/exponent/generated/ExponentBuildConstants.java
/android/app/src/androidTest/java/host/exp/exponent/generated/TestBuildConstants.java
.kernel-ngrok-url

# Template files
/android/app/src/main/AndroidManifest.xml
/android/app/google-services.json
/android/expoview/src/main/java/host/exp/exponent/generated/ExponentKeys.java
/apps/bare-expo/android/app/google-services.json
/apps/bare-expo/ios/BareExpo/GoogleService-Info.plist
/ios/Exponent/Generated/EXKeys.h
/ios/ExponentIntegrationTests/EXTestEnvironment.plist
/exponent-view-template/ios/Podfile

# Template projects
templates/**/android/**/generated/*
templates/**/android/app/build
templates/**/Pods/**
templates/**/Podfile.lock
templates/**/yarn.lock

# EYW template
/packages/expo-yarn-workspaces/workspace-template/yarn.lock

# Codemod
.codemod.bookmark

# Fastlane
/*.cer
/fastlane/report.xml
/fastlane/Preview.html
/fastlane/Deployment
/fastlane/test_output
/Preview.html
/gc_keys.json
/fastlane/gc_keys.json

# CI
/android/logcat.txt

# Shell apps
android-shell-app
shellAppBase-*
shellAppIntermediates
shellAppWorkspaces
/artifacts/*

# Expo Client builds
/client-builds

# Expo web env
.env.local
.env.development.local
.env.test.local
.env.production.local
apps/bare-expo/deploy-url.txt

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

# Expo Doc merging
docs/pages/versions/*/react-native/ADDED_*.md
docs/pages/versions/*/react-native/REMOVED_*.md
docs/pages/versions/*/react-native/*.diff

# Home
/home/dist

# Prebuilds
/packages/**/*.xcframework
/packages/**/*.spec.json
/packages/**/Info-generated.plist

# iOS
/ios/Pods
/ios/build
**/ios/.xcode.env.local
/ios/versioned-react-native/*/ReactNative/sdks/hermes-engine/destroot
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"printWidth": 100,
"printWidth": 140,
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": true,
"jsxBracketSameLine": true,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
Binary file added android/app/debug.keystore
Binary file not shown.
21 changes: 15 additions & 6 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
{
"expo": {
"name": "DinderRN",
"slug": "DinderRN",
"slug": "dinder",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/images/dinder-splash.png",
// "image": "./assets/images/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.thinktapper.dinder"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"package": "com.thinktapper.dinder"
},
"web": {
"favicon": "./assets/images/favicon-32x32.png"
}
},
"extra": {
"eas": {
"projectId": "9a8d4dc4-0f50-49bf-a432-cb0540b72035"
}
},
"owner": "tapper"
}
}
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';

import App from './App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
4 changes: 4 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

module.exports = getDefaultConfig(__dirname);
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "dinderrn",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"eject": "expo eject",
"lint": "eslint .",
Expand All @@ -25,14 +24,13 @@
"@tanstack/react-query": "^4.18.0",
"@tanstack/react-query-persist-client": "^4.19.1",
"axios": "^1.1.3",
"expo": "~46.0.16",
"expo": "~46.0.19",
"expo-asset": "~8.6.3",
"expo-secure-store": "~11.3.0",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
"fast-json-patch": "^3.1.1",
"formik": "^2.2.9",
"immer": "^9.0.17",
"moment": "^2.29.4",
"native-base": "^3.4.25",
"patch-package": "^6.5.0",
Expand All @@ -57,6 +55,7 @@
"react-native-screens": "~3.15.0",
"react-native-svg": "12.3.0",
"react-native-url-polyfill": "^1.3.0",
"react-native-web": "~0.18.7",
"react-ridge-state": "^4.2.9",
"twrnc": "^3.4.0",
"yup": "^0.32.11"
Expand Down
Loading

0 comments on commit 62a6f5b

Please sign in to comment.