From f4851ba1810434b862f3b1766d95045ab6019222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Spa=CC=88th?= Date: Fri, 11 Aug 2023 23:16:10 +0200 Subject: [PATCH] chore: add tvOS example project --- examples/exampletvOS/.bundle/config | 2 + examples/exampletvOS/.eslintrc.js | 4 + examples/exampletvOS/.gitignore | 63 + examples/exampletvOS/.node-version | 1 + examples/exampletvOS/.prettierrc.js | 7 + examples/exampletvOS/.watchmanconfig | 1 + examples/exampletvOS/App.tsx | 41 + examples/exampletvOS/Gemfile | 6 + examples/exampletvOS/Gemfile.lock | 98 ++ examples/exampletvOS/__tests__/App-test.tsx | 14 + examples/exampletvOS/android/app/build.gradle | 176 +++ .../exampletvOS/android/app/debug.keystore | Bin 0 -> 2257 bytes .../android/app/proguard-rules.pro | 10 + .../android/app/src/debug/AndroidManifest.xml | 13 + .../com/exampletvos/ReactNativeFlipper.java | 75 ++ .../android/app/src/main/AndroidManifest.xml | 32 + .../java/com/exampletvos/MainActivity.java | 35 + .../java/com/exampletvos/MainApplication.java | 64 + .../res/drawable/rn_edit_text_material.xml | 36 + .../app/src/main/res/drawable/tv_banner.png | Bin 0 -> 28517 bytes .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3056 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5024 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2096 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2858 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4569 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7098 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6464 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10676 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9250 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 15523 bytes .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/styles.xml | 9 + .../com/exampletvos/ReactNativeFlipper.java | 20 + examples/exampletvOS/android/build.gradle | 21 + .../exampletvOS/android/gradle.properties | 44 + .../android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59821 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 + examples/exampletvOS/android/gradlew | 234 ++++ examples/exampletvOS/android/gradlew.bat | 89 ++ examples/exampletvOS/android/settings.gradle | 4 + examples/exampletvOS/app.json | 4 + examples/exampletvOS/babel.config.js | 17 + examples/exampletvOS/index.js | 9 + examples/exampletvOS/ios/.xcode.env | 11 + examples/exampletvOS/ios/Podfile | 86 ++ examples/exampletvOS/ios/Podfile.lock | 620 ++++++++++ .../ios/exampletvOS-tvOS/Info.plist | 53 + .../ios/exampletvOS-tvOSTests/Info.plist | 24 + .../ios/exampletvOS.xcodeproj/project.pbxproj | 1096 +++++++++++++++++ .../xcschemes/exampletvOS-tvOS.xcscheme | 88 ++ .../xcschemes/exampletvOS.xcscheme | 88 ++ .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../exampletvOS/ios/exampletvOS/AppDelegate.h | 6 + .../ios/exampletvOS/AppDelegate.mm | 36 + .../AppIcon.appiconset/Contents.json | 53 + .../exampletvOS/Images.xcassets/Contents.json | 6 + .../exampletvOS/ios/exampletvOS/Info.plist | 55 + .../ios/exampletvOS/LaunchScreen.storyboard | 47 + examples/exampletvOS/ios/exampletvOS/main.m | 10 + .../ios/exampletvOSTests/Info.plist | 24 + .../ios/exampletvOSTests/exampletvOSTests.m | 66 + examples/exampletvOS/metro.config.js | 39 + examples/exampletvOS/package.json | 38 + examples/exampletvOS/react-native.config.js | 10 + examples/exampletvOS/tsconfig.json | 3 + 66 files changed, 3614 insertions(+) create mode 100644 examples/exampletvOS/.bundle/config create mode 100644 examples/exampletvOS/.eslintrc.js create mode 100644 examples/exampletvOS/.gitignore create mode 100644 examples/exampletvOS/.node-version create mode 100644 examples/exampletvOS/.prettierrc.js create mode 100644 examples/exampletvOS/.watchmanconfig create mode 100644 examples/exampletvOS/App.tsx create mode 100644 examples/exampletvOS/Gemfile create mode 100644 examples/exampletvOS/Gemfile.lock create mode 100644 examples/exampletvOS/__tests__/App-test.tsx create mode 100644 examples/exampletvOS/android/app/build.gradle create mode 100644 examples/exampletvOS/android/app/debug.keystore create mode 100644 examples/exampletvOS/android/app/proguard-rules.pro create mode 100644 examples/exampletvOS/android/app/src/debug/AndroidManifest.xml create mode 100644 examples/exampletvOS/android/app/src/debug/java/com/exampletvos/ReactNativeFlipper.java create mode 100644 examples/exampletvOS/android/app/src/main/AndroidManifest.xml create mode 100644 examples/exampletvOS/android/app/src/main/java/com/exampletvos/MainActivity.java create mode 100644 examples/exampletvOS/android/app/src/main/java/com/exampletvos/MainApplication.java create mode 100644 examples/exampletvOS/android/app/src/main/res/drawable/rn_edit_text_material.xml create mode 100644 examples/exampletvOS/android/app/src/main/res/drawable/tv_banner.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 examples/exampletvOS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 examples/exampletvOS/android/app/src/main/res/values/strings.xml create mode 100644 examples/exampletvOS/android/app/src/main/res/values/styles.xml create mode 100644 examples/exampletvOS/android/app/src/release/java/com/exampletvos/ReactNativeFlipper.java create mode 100644 examples/exampletvOS/android/build.gradle create mode 100644 examples/exampletvOS/android/gradle.properties create mode 100644 examples/exampletvOS/android/gradle/wrapper/gradle-wrapper.jar create mode 100644 examples/exampletvOS/android/gradle/wrapper/gradle-wrapper.properties create mode 100755 examples/exampletvOS/android/gradlew create mode 100644 examples/exampletvOS/android/gradlew.bat create mode 100644 examples/exampletvOS/android/settings.gradle create mode 100644 examples/exampletvOS/app.json create mode 100644 examples/exampletvOS/babel.config.js create mode 100644 examples/exampletvOS/index.js create mode 100644 examples/exampletvOS/ios/.xcode.env create mode 100644 examples/exampletvOS/ios/Podfile create mode 100644 examples/exampletvOS/ios/Podfile.lock create mode 100644 examples/exampletvOS/ios/exampletvOS-tvOS/Info.plist create mode 100644 examples/exampletvOS/ios/exampletvOS-tvOSTests/Info.plist create mode 100644 examples/exampletvOS/ios/exampletvOS.xcodeproj/project.pbxproj create mode 100644 examples/exampletvOS/ios/exampletvOS.xcodeproj/xcshareddata/xcschemes/exampletvOS-tvOS.xcscheme create mode 100644 examples/exampletvOS/ios/exampletvOS.xcodeproj/xcshareddata/xcschemes/exampletvOS.xcscheme create mode 100644 examples/exampletvOS/ios/exampletvOS.xcworkspace/contents.xcworkspacedata create mode 100644 examples/exampletvOS/ios/exampletvOS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 examples/exampletvOS/ios/exampletvOS/AppDelegate.h create mode 100644 examples/exampletvOS/ios/exampletvOS/AppDelegate.mm create mode 100644 examples/exampletvOS/ios/exampletvOS/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 examples/exampletvOS/ios/exampletvOS/Images.xcassets/Contents.json create mode 100644 examples/exampletvOS/ios/exampletvOS/Info.plist create mode 100644 examples/exampletvOS/ios/exampletvOS/LaunchScreen.storyboard create mode 100644 examples/exampletvOS/ios/exampletvOS/main.m create mode 100644 examples/exampletvOS/ios/exampletvOSTests/Info.plist create mode 100644 examples/exampletvOS/ios/exampletvOSTests/exampletvOSTests.m create mode 100644 examples/exampletvOS/metro.config.js create mode 100644 examples/exampletvOS/package.json create mode 100644 examples/exampletvOS/react-native.config.js create mode 100644 examples/exampletvOS/tsconfig.json diff --git a/examples/exampletvOS/.bundle/config b/examples/exampletvOS/.bundle/config new file mode 100644 index 00000000..848943bb --- /dev/null +++ b/examples/exampletvOS/.bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/examples/exampletvOS/.eslintrc.js b/examples/exampletvOS/.eslintrc.js new file mode 100644 index 00000000..40c6dcd0 --- /dev/null +++ b/examples/exampletvOS/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: '@react-native-community', +}; diff --git a/examples/exampletvOS/.gitignore b/examples/exampletvOS/.gitignore new file mode 100644 index 00000000..16f8c307 --- /dev/null +++ b/examples/exampletvOS/.gitignore @@ -0,0 +1,63 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# 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/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* diff --git a/examples/exampletvOS/.node-version b/examples/exampletvOS/.node-version new file mode 100644 index 00000000..3c032078 --- /dev/null +++ b/examples/exampletvOS/.node-version @@ -0,0 +1 @@ +18 diff --git a/examples/exampletvOS/.prettierrc.js b/examples/exampletvOS/.prettierrc.js new file mode 100644 index 00000000..2b540746 --- /dev/null +++ b/examples/exampletvOS/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + arrowParens: 'avoid', + bracketSameLine: true, + bracketSpacing: false, + singleQuote: true, + trailingComma: 'all', +}; diff --git a/examples/exampletvOS/.watchmanconfig b/examples/exampletvOS/.watchmanconfig new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/examples/exampletvOS/.watchmanconfig @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/examples/exampletvOS/App.tsx b/examples/exampletvOS/App.tsx new file mode 100644 index 00000000..d151527b --- /dev/null +++ b/examples/exampletvOS/App.tsx @@ -0,0 +1,41 @@ +import React from 'react'; + +import {ActivityIndicator, StyleSheet} from 'react-native'; + +import Video from 'react-native-video'; + +export default function App() { + return ( + <> + +