diff --git a/.gitignore b/.gitignore index 2e577d9c..746b7536 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ coverage/ # tsc # dist +android/build # OSX # diff --git a/examples/RNOneSignalTS/.buckconfig b/examples/RNOneSignalTS/.buckconfig deleted file mode 100644 index 934256cb..00000000 --- a/examples/RNOneSignalTS/.buckconfig +++ /dev/null @@ -1,6 +0,0 @@ - -[android] - target = Google Inc.:Google APIs:23 - -[maven_repositories] - central = https://repo1.maven.org/maven2 diff --git a/examples/RNOneSignalTS/.bundle/config b/examples/RNOneSignalTS/.bundle/config new file mode 100644 index 00000000..848943bb --- /dev/null +++ b/examples/RNOneSignalTS/.bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/examples/RNOneSignalTS/.eslintrc.js b/examples/RNOneSignalTS/.eslintrc.js index 18969972..187894b6 100644 --- a/examples/RNOneSignalTS/.eslintrc.js +++ b/examples/RNOneSignalTS/.eslintrc.js @@ -1,6 +1,4 @@ module.exports = { root: true, - extends: '@react-native-community', - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'], + extends: '@react-native', }; diff --git a/examples/RNOneSignalTS/.gitattributes b/examples/RNOneSignalTS/.gitattributes deleted file mode 100644 index d42ff183..00000000 --- a/examples/RNOneSignalTS/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.pbxproj -text diff --git a/examples/RNOneSignalTS/.gitignore b/examples/RNOneSignalTS/.gitignore index 6a5e410a..de999559 100644 --- a/examples/RNOneSignalTS/.gitignore +++ b/examples/RNOneSignalTS/.gitignore @@ -20,6 +20,7 @@ DerivedData *.hmap *.ipa *.xcuserstate +**/.xcode.env.local # Android/IntelliJ # @@ -28,10 +29,11 @@ build/ .gradle local.properties *.iml - -# Visual Studio Code -# -.vscode/ +*.hprof +.cxx/ +*.keystore +!debug.keystore +.kotlin/ # node.js # @@ -39,12 +41,6 @@ node_modules/ npm-debug.log yarn-error.log -# BUCK -buck-out/ -\.buckd/ -*.keystore -!debug.keystore - # fastlane # # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the @@ -52,12 +48,28 @@ 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 -# CocoaPods -/ios/Pods/ +# Ruby / CocoaPods +**/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* + +# testing +/coverage + +# Yarn +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/examples/RNOneSignalTS/.prettierrc.js b/examples/RNOneSignalTS/.prettierrc.js index 5c4de1a4..06860c8d 100644 --- a/examples/RNOneSignalTS/.prettierrc.js +++ b/examples/RNOneSignalTS/.prettierrc.js @@ -1,6 +1,5 @@ module.exports = { - bracketSpacing: false, - jsxBracketSameLine: true, + arrowParens: 'avoid', singleQuote: true, trailingComma: 'all', }; diff --git a/examples/RNOneSignalTS/App.tsx b/examples/RNOneSignalTS/App.tsx new file mode 100644 index 00000000..0ec5aa56 --- /dev/null +++ b/examples/RNOneSignalTS/App.tsx @@ -0,0 +1,42 @@ +/** + * Sample React Native App + * https://github.com/facebook/react-native + * + * @format + */ + +import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native'; +import { + SafeAreaProvider, + useSafeAreaInsets, +} from 'react-native-safe-area-context'; +import OSDemo from './OSDemo'; + +function App() { + const isDarkMode = useColorScheme() === 'dark'; + + return ( + + + + + ); +} + +function AppContent() { + const safeAreaInsets = useSafeAreaInsets(); + + return ( + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + }, +}); + +export default App; diff --git a/examples/RNOneSignalTS/Gemfile b/examples/RNOneSignalTS/Gemfile new file mode 100644 index 00000000..6a4c5f17 --- /dev/null +++ b/examples/RNOneSignalTS/Gemfile @@ -0,0 +1,16 @@ +source 'https://rubygems.org' + +# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version +ruby ">= 2.6.10" + +# Exclude problematic versions of cocoapods and activesupport that causes build failures. +gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' +gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' +gem 'xcodeproj', '< 1.26.0' +gem 'concurrent-ruby', '< 1.3.4' + +# Ruby 3.4.0 has removed some libraries from the standard library. +gem 'bigdecimal' +gem 'logger' +gem 'benchmark' +gem 'mutex_m' diff --git a/examples/RNOneSignalTS/src/Helpers.tsx b/examples/RNOneSignalTS/Helpers.tsx similarity index 66% rename from examples/RNOneSignalTS/src/Helpers.tsx rename to examples/RNOneSignalTS/Helpers.tsx index 43406953..a95e7d28 100644 --- a/examples/RNOneSignalTS/src/Helpers.tsx +++ b/examples/RNOneSignalTS/Helpers.tsx @@ -1,26 +1,24 @@ -import * as React from 'react'; import { - View, - StyleSheet, - Platform, KeyboardAvoidingView, + StyleSheet, + Text, TextInput, + TouchableOpacity, } from 'react-native'; -import {Button} from '@react-native-material/core'; -const disabledColor = '#BEBEBE'; +// const disabledColor = '#BEBEBE'; export const renderButtonView = (name: string, callback: Function) => { return ( - -