@dolami-inc/react-native-expo-unity 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/ExpoUnity.podspec +6 -13
- package/package.json +1 -1
package/ios/ExpoUnity.podspec
CHANGED
|
@@ -26,25 +26,18 @@ Pod::Spec.new do |s|
|
|
|
26
26
|
s.source_files = '**/*.{h,m,mm,swift}'
|
|
27
27
|
s.exclude_files = 'UnityFramework.framework/**/*'
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
cp -Rn "#{unity_ios_dir}/." . 2>/dev/null || true
|
|
33
|
-
fi
|
|
34
|
-
CMD
|
|
35
|
-
|
|
29
|
+
# Reference Unity build artifacts directly by absolute path.
|
|
30
|
+
# We avoid copying because the pod source may be in a read-only package manager
|
|
31
|
+
# cache (e.g. bun's node_modules/.bun/), which would cause silent copy failures.
|
|
36
32
|
if File.exist?(File.join(unity_ios_dir, 'UnityFramework.framework'))
|
|
37
|
-
s.vendored_frameworks = 'UnityFramework.framework'
|
|
33
|
+
s.vendored_frameworks = File.join(unity_ios_dir, 'UnityFramework.framework')
|
|
38
34
|
end
|
|
39
35
|
|
|
40
|
-
a_files = Dir.glob(File.join(unity_ios_dir, '*.a'))
|
|
36
|
+
a_files = Dir.glob(File.join(unity_ios_dir, '*.a'))
|
|
41
37
|
s.vendored_libraries = a_files unless a_files.empty?
|
|
42
38
|
|
|
43
39
|
s.pod_target_xcconfig = {
|
|
44
|
-
'HEADER_SEARCH_PATHS' =>
|
|
45
|
-
'"${PODS_TARGET_SRCROOT}/UnityFramework.framework/Headers"',
|
|
46
|
-
"\"#{unity_ios_dir}/UnityFramework.framework/Headers\""
|
|
47
|
-
].join(' '),
|
|
40
|
+
'HEADER_SEARCH_PATHS' => "\"#{unity_ios_dir}/UnityFramework.framework/Headers\"",
|
|
48
41
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
|
|
49
42
|
'GCC_PREPROCESSOR_DEFINITIONS' => 'UNITY_FRAMEWORK=1',
|
|
50
43
|
'ENABLE_BITCODE' => 'NO'
|