Skip to content

Commit

Permalink
build(example): 🏗️ updated example app configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDongminYoo committed Oct 14, 2023
1 parent 7fbf7b7 commit 2565018
Show file tree
Hide file tree
Showing 8 changed files with 13,955 additions and 14,919 deletions.
40 changes: 18 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# OSX
#
.DS_Store

# Expo
# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Firebase
**/google-services.json
**/GoogleService-Info.plist

# Xcode
#
build/
*.pbxuser
!default.pbxuser
Expand All @@ -27,56 +25,54 @@ xcuserdata
*.moved-aside
DerivedData
*.hmap
**/*.ipa
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IJ
#
.classpath
.cxx
.gradle
.idea
.project
.cproject
.settings
local.properties
secrets.properties
android.iml
**/*.aab
**/*.apk

# CocoaPods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
*.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
android/keystores/release.keystore

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Expo
.expo/

# TurboRepo
.turbo/

# generated by bob
lib/

# Bundle artifact
*.jsbundle

# Environment
.env
xcode.env
.dccache

.wakatime-project
3 changes: 2 additions & 1 deletion example/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.12'
gem 'cocoapods', '~> 1.13'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
98 changes: 0 additions & 98 deletions example/Gemfile.lock

This file was deleted.

18 changes: 8 additions & 10 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "step-counter-example",
"name": "react-native-step-counter-example",
"version": "0.0.1",
"private": true,
"scripts": {
"run-android": "react-native run-android",
"run-ios": "react-native run-ios",
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start --reset-cache",
"clear": "react-native clean --include android,metro,watchman,yarn",
"doctor": "react-native doctor --fix; react-native info",
"prepods": "react-native setup-ios-permissions",
"pods": "(cd ios && pod install --no-repo-update || pod update hermes-engine --no-repo-update)",
"pods": "yarn pod-install",
"build:android": "(cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a)",
"build:ios": "(cd ios && xcodebuild -workspace StepCounterExample.xcworkspace -scheme StepCounterExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO)",
"postinstall": "yarn rnx-align-deps --write",
"watch": "tsc --noEmit --watch"
},
Expand All @@ -24,17 +26,13 @@
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0-0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0-0",
"@babel/plugin-transform-arrow-functions": "^7.0.0-0",
"@babel/plugin-transform-shorthand-properties": "^7.0.0-0",
"@babel/plugin-transform-template-literals": "^7.0.0-0",
"@babel/preset-env": "^7.23.2",
"@babel/runtime": "^7.23.2",
"@react-native/metro-config": "^0.72.0",
"@rnx-kit/align-deps": "^2.2.5",
"babel-plugin-module-resolver": "^5.0.0",
"metro-react-native-babel-preset": "^0.76.5"
"metro-react-native-babel-preset": "^0.76.5",
"pod-install": "^0.1.0"
},
"engines": {
"node": ">=16"
Expand Down
3 changes: 0 additions & 3 deletions example/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ const pak = require('../package.json');

module.exports = {
dependencies: {
...(process.env.NO_FLIPPER
? { 'react-native-flipper': { platforms: { ios: null } } }
: {}),
[pak.name]: {
root: path.join(__dirname, '..'),
},
Expand Down
Loading

0 comments on commit 2565018

Please sign in to comment.