From 2aa5aea4c91b8c34bf95eaa755bddeb077561768 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Tue, 9 Nov 2021 13:55:45 +0800 Subject: [PATCH] add share play --- ios/Podfile.lock | 6 ++++++ ios/shareplayexample.xcodeproj/project.pbxproj | 9 ++++++--- ios/shareplayexample/shareplay-example.entitlements | 12 +++++++----- package.json | 7 ++++--- yarn.lock | 5 +++++ 5 files changed, 28 insertions(+), 11 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index fcffcda..7324893 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -235,6 +235,8 @@ PODS: - React-jsinspector (0.64.2) - react-native-safe-area-context (3.3.2): - React-Core + - react-native-shareplay (0.6.1): + - React-Core - React-perflogger (0.64.2) - React-RCTActionSheet (0.64.2): - React-Core/RCTActionSheetHeaders (= 0.64.2) @@ -368,6 +370,7 @@ DEPENDENCIES: - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - react-native-shareplay (from `../node_modules/react-native-shareplay`) - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) @@ -450,6 +453,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/jsinspector" react-native-safe-area-context: :path: "../node_modules/react-native-safe-area-context" + react-native-shareplay: + :path: "../node_modules/react-native-shareplay" React-perflogger: :path: "../node_modules/react-native/ReactCommon/reactperflogger" React-RCTActionSheet: @@ -515,6 +520,7 @@ SPEC CHECKSUMS: React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3 React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae react-native-safe-area-context: 584dc04881deb49474363f3be89e4ca0e854c057 + react-native-shareplay: 3d9e356f8c0543da2ea14e9cf57b7b87dc6961d8 React-perflogger: 25373e382fed75ce768a443822f07098a15ab737 React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5 React-RCTAnimation: 6a2e76ab50c6f25b428d81b76a5a45351c4d77aa diff --git a/ios/shareplayexample.xcodeproj/project.pbxproj b/ios/shareplayexample.xcodeproj/project.pbxproj index a7ed70d..f55a0ad 100644 --- a/ios/shareplayexample.xcodeproj/project.pbxproj +++ b/ios/shareplayexample.xcodeproj/project.pbxproj @@ -19,7 +19,7 @@ /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* shareplayexample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = shareplayexample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07F961A680F5B00A75B9A /* shareplay-example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "shareplay-example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = shareplayexample/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = shareplayexample/AppDelegate.m; sourceTree = ""; }; 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = shareplayexample/Images.xcassets; sourceTree = ""; }; @@ -99,7 +99,7 @@ 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( - 13B07F961A680F5B00A75B9A /* shareplayexample.app */, + 13B07F961A680F5B00A75B9A /* shareplay-example.app */, ); name = Products; sourceTree = ""; @@ -159,7 +159,7 @@ ); name = shareplayexample; productName = shareplayexample; - productReference = 13B07F961A680F5B00A75B9A /* shareplayexample.app */; + productReference = 13B07F961A680F5B00A75B9A /* shareplay-example.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -171,6 +171,7 @@ LastUpgradeCheck = 1130; TargetAttributes = { 13B07F861A680F5B00A75B9A = { + DevelopmentTeam = 7CRYNR44B3; LastSwiftMigration = 1250; }; }; @@ -309,6 +310,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = "shareplayexample/shareplay-example.entitlements"; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 7CRYNR44B3; ENABLE_BITCODE = NO; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", @@ -340,6 +342,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = "shareplayexample/shareplay-example.entitlements"; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 7CRYNR44B3; INFOPLIST_FILE = shareplayexample/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/ios/shareplayexample/shareplay-example.entitlements b/ios/shareplayexample/shareplay-example.entitlements index 018a6e2..f13d149 100644 --- a/ios/shareplayexample/shareplay-example.entitlements +++ b/ios/shareplayexample/shareplay-example.entitlements @@ -1,8 +1,10 @@ - - aps-environment - development - - \ No newline at end of file + + aps-environment + development + com.apple.developer.group-session + + + diff --git a/package.json b/package.json index 704d163..4791a13 100644 --- a/package.json +++ b/package.json @@ -10,17 +10,18 @@ }, "dependencies": { "expo": "~43.0.0", + "expo-splash-screen": "~0.13.3", "expo-status-bar": "~1.1.0", "expo-updates": "~0.10.5", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.2", - "react-native-web": "0.17.1", - "expo-splash-screen": "~0.13.3", "react-native-gesture-handler": "~1.10.2", "react-native-reanimated": "~2.2.0", "react-native-safe-area-context": "3.3.2", - "react-native-screens": "~3.8.0" + "react-native-screens": "~3.8.0", + "react-native-shareplay": "^0.6.1", + "react-native-web": "0.17.1" }, "devDependencies": { "@babel/core": "^7.12.9", diff --git a/yarn.lock b/yarn.lock index 99045ec..c5c533e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4671,6 +4671,11 @@ react-native-screens@~3.8.0: dependencies: warn-once "^0.1.0" +react-native-shareplay@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/react-native-shareplay/-/react-native-shareplay-0.6.1.tgz#16e5b3767d98d815274bc69bd4de24ac38444131" + integrity sha512-Q56mrQ0hS54Thymw70amxt2c0G9tqkJ6eYZd9fCT9sMb1hRpBF0w/oEKtZtZ3FymKeqLBcmua0EoK2xstmbB5Q== + react-native-web@0.17.1: version "0.17.1" resolved "https://registry.yarnpkg.com/react-native-web/-/react-native-web-0.17.1.tgz#90d473c89dd99b88bc9830b2a9fcdd2fc5f04902"