Skip to content

Commit dc759f9

Browse files
committed
Fixing issues Android & iOS
Issues with running the app locally where fixed. metro.config.js file updated with local path to the plugin. adding main.jsbundle to ios demo for solving no bundle url present error Podfile update for fixing the RTC-Folly errors Downgrading react-native-screens to 3.25.0 solving gradle errors
1 parent 07374ed commit dc759f9

File tree

4 files changed

+35
-5
lines changed

4 files changed

+35
-5
lines changed

demos/appsflyer-react-native-app/ios/AppsFlyerExample.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1313
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1414
758FBD406B8A60C781CB65C7 /* libPods-AppsFlyerExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3772C10A05F15474D2AE8E5B /* libPods-AppsFlyerExample.a */; };
15+
7EEAAD9F2D2D7980006F2316 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 7EEAAD9E2D2D7980006F2316 /* main.jsbundle */; };
1516
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1617
8A99A8955B526C01707AFBFA /* libPods-AppsFlyerExample-AppsFlyerExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C982642725666DF8D1E1F96 /* libPods-AppsFlyerExample-AppsFlyerExampleTests.a */; };
1718
/* End PBXBuildFile section */
@@ -39,6 +40,7 @@
3940
1C982642725666DF8D1E1F96 /* libPods-AppsFlyerExample-AppsFlyerExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AppsFlyerExample-AppsFlyerExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4041
3772C10A05F15474D2AE8E5B /* libPods-AppsFlyerExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AppsFlyerExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4142
5CAE30CF50FDE233EFB84891 /* Pods-AppsFlyerExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppsFlyerExample.release.xcconfig"; path = "Target Support Files/Pods-AppsFlyerExample/Pods-AppsFlyerExample.release.xcconfig"; sourceTree = "<group>"; };
43+
7EEAAD9E2D2D7980006F2316 /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
4244
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = AppsFlyerExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
4345
BE4C6B4402435E3245DA5B5C /* Pods-AppsFlyerExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppsFlyerExample.debug.xcconfig"; path = "Target Support Files/Pods-AppsFlyerExample/Pods-AppsFlyerExample.debug.xcconfig"; sourceTree = "<group>"; };
4446
C6E030350442BE719CA4C6F7 /* Pods-AppsFlyerExample-AppsFlyerExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppsFlyerExample-AppsFlyerExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-AppsFlyerExample-AppsFlyerExampleTests/Pods-AppsFlyerExample-AppsFlyerExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
@@ -129,6 +131,7 @@
129131
83CBB9F61A601CBA00E9B192 = {
130132
isa = PBXGroup;
131133
children = (
134+
7EEAAD9E2D2D7980006F2316 /* main.jsbundle */,
132135
13B07FAE1A68108700A75B9A /* AppsFlyerExample */,
133136
832341AE1AAA6A7D00B99B32 /* Libraries */,
134137
00E356EF1AD99517003FC87E /* AppsFlyerExampleTests */,
@@ -243,6 +246,7 @@
243246
isa = PBXResourcesBuildPhase;
244247
buildActionMask = 2147483647;
245248
files = (
249+
7EEAAD9F2D2D7980006F2316 /* main.jsbundle in Resources */,
246250
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
247251
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
248252
);
@@ -263,7 +267,7 @@
263267
);
264268
runOnlyForDeploymentPostprocessing = 1;
265269
shellPath = /bin/sh;
266-
shellScript = "set -e\n\nexport NODE_BINARY=/Users/amit.levy/.nvm/versions/node/v21.7.3/bin/node\n";
270+
shellScript = "set -e\n\nexport NODE_BINARY=/usr/local/bin/node\n";
267271
};
268272
4721923C614EE6D1A58C11F1 /* [CP] Copy Pods Resources */ = {
269273
isa = PBXShellScriptBuildPhase;

demos/appsflyer-react-native-app/ios/Podfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ target 'AppsFlyerExample' do
2323
# you should disable the next line.
2424
# use_flipper!()
2525

26+
# Post install process to make sure that all the pods with minimum deploymeny target 12
2627
post_install do |installer|
27-
react_native_post_install(installer)
28+
react_native_post_install(installer)
29+
installer.pods_project.targets.each do |target|
30+
target.build_configurations.each do |config|
31+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12'
32+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
33+
end
34+
case target.name
35+
when 'RCT-Folly'
36+
target.build_configurations.each do |config|
37+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
38+
end
39+
end
40+
end
2841
end
2942
end

demos/appsflyer-react-native-app/metro.config.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
* @format
66
*/
77

8+
const path = require('path');
9+
10+
const localPackagePaths = [
11+
path.resolve(__dirname, '../../'), // Path to `react-native-appsflyer`
12+
];
13+
814
module.exports = {
915
transformer: {
1016
getTransformOptions: async () => ({
@@ -14,4 +20,11 @@ module.exports = {
1420
},
1521
}),
1622
},
17-
};
23+
resolver: {
24+
nodeModulesPaths: [path.resolve(__dirname, 'node_modules'), ...localPackagePaths],
25+
extraNodeModules: {
26+
'react-native-appsflyer': path.resolve(__dirname, '../../'),
27+
},
28+
},
29+
watchFolders: [...localPackagePaths],
30+
};

demos/appsflyer-react-native-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"@react-navigation/stack": "^6.0.7",
1515
"react": "18.1.0",
1616
"react-native": "0.70.6",
17-
"react-native-appsflyer": "../../",
17+
"react-native-appsflyer": "file:../../",
1818
"react-native-elements": "^3.4.2",
1919
"react-native-gesture-handler": "^1.10.3",
2020
"react-native-safe-area-context": "^3.3.2",
21-
"react-native-screens": "^3.34.0",
21+
"react-native-screens": "3.25.0",
2222
"react-native-vector-icons": "8.1.0"
2323
},
2424
"devDependencies": {

0 commit comments

Comments
 (0)