From a216ed87a561a7a5655624f3b21166e1d26b69b4 Mon Sep 17 00:00:00 2001 From: Matt Jennings Date: Mon, 21 Aug 2023 11:16:10 -0400 Subject: [PATCH 1/3] Add tvos support --- ios/RNAppsFlyer.xcodeproj/project.pbxproj | 2 ++ package.json | 4 ++-- react-native-appsflyer.podspec | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ios/RNAppsFlyer.xcodeproj/project.pbxproj b/ios/RNAppsFlyer.xcodeproj/project.pbxproj index b594b417..b3966e95 100755 --- a/ios/RNAppsFlyer.xcodeproj/project.pbxproj +++ b/ios/RNAppsFlyer.xcodeproj/project.pbxproj @@ -164,6 +164,7 @@ MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + TVOS_DEPLOYMENT_TARGET = 12.0; }; name = Debug; }; @@ -197,6 +198,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 7.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; + TVOS_DEPLOYMENT_TARGET = 12.0; VALIDATE_PRODUCT = YES; }; name = Release; diff --git a/package.json b/package.json index c981facb..969d5069 100755 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/AppsFlyerSDK/react-native-appsflyer.git" + "url": "https://github.com/CuriosityStream/appsflyer-react-native-plugin.git" }, "author": "Appsflyer / Maxim Shoustin", "license": { @@ -56,4 +56,4 @@ "/__tests__/setup.js" ] } -} +} \ No newline at end of file diff --git a/react-native-appsflyer.podspec b/react-native-appsflyer.podspec index b742ca7e..79a86c90 100644 --- a/react-native-appsflyer.podspec +++ b/react-native-appsflyer.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.author = pkg["author"] s.source = { :git => pkg["repository"]["url"] } s.source_files = 'ios/**/*.{h,m}' - s.platform = :ios, "9.0" + s.platforms = { :ios => "9.0", :tvos => "12.0" } s.static_framework = true s.dependency 'React' From f04aa57779256c0e9a40216493b4eaf7b7af9010 Mon Sep 17 00:00:00 2001 From: Matt Jennings Date: Mon, 21 Aug 2023 11:16:47 -0400 Subject: [PATCH 2/3] update pod branch --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 969d5069..b9edd03f 100755 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/CuriosityStream/appsflyer-react-native-plugin.git" + "url": "https://github.com/CuriosityStream/appsflyer-react-native-plugin.git#tvos" }, "author": "Appsflyer / Maxim Shoustin", "license": { From 43dffbbd0760e8c42ed84a02a1c0fdb868e32c51 Mon Sep 17 00:00:00 2001 From: Matt Jennings Date: Mon, 21 Aug 2023 11:27:08 -0400 Subject: [PATCH 3/3] Update rn config --- react-native.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/react-native.config.js b/react-native.config.js index dfbe81b4..700dec2c 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,13 +1,11 @@ -const path = require('path'); - module.exports = { dependency: { platforms: { - ios: { podspecPath: path.join(__dirname, 'react-native-appsflyer.podspec') }, android: { - packageImportPath: 'import com.appsflyer.reactnative.RNAppsFlyerPackage;', - packageInstance: 'new RNAppsFlyerPackage()', + packageImportPath: + "import com.appsflyer.reactnative.RNAppsFlyerPackage;", + packageInstance: "new RNAppsFlyerPackage()", }, }, }, -}; \ No newline at end of file +};