|
@@ -71,16 +71,12 @@ target 'Strides' do
|
|
|
# pod 'GoogleMaps', '3.5.0'
|
|
# pod 'GoogleMaps', '3.5.0'
|
|
|
# pod 'Google-Maps-iOS-Utils', '2.1.0'
|
|
# pod 'Google-Maps-iOS-Utils', '2.1.0'
|
|
|
|
|
|
|
|
- #谷歌通知启用
|
|
|
|
|
- pod 'Firebase/Core', '9.4.0', :modular_headers => true
|
|
|
|
|
- pod 'Firebase/Analytics', '9.4.0', :modular_headers => true
|
|
|
|
|
- pod 'Firebase/Messaging', '9.4.0', :modular_headers => true
|
|
|
|
|
- pod 'FirebaseCoreInternal', '9.4.0', :modular_headers => true
|
|
|
|
|
- pod 'GoogleUtilities', :modular_headers => true
|
|
|
|
|
- #微软热更新
|
|
|
|
|
- #pod 'CodePush', :path => '../node_modules/react-native-code-push'
|
|
|
|
|
- #国际化
|
|
|
|
|
- #pod 'RNI18n', :path => '../node_modules/react-native-i18n'
|
|
|
|
|
|
|
+ # 谷歌通知启用
|
|
|
|
|
+ # pod 'FirebaseAuth'
|
|
|
|
|
+ pod 'FirebaseCore'
|
|
|
|
|
+ pod 'FirebaseAnalytics'
|
|
|
|
|
+ pod 'FirebaseMessaging'
|
|
|
|
|
+ # pod 'FirebaseFirestore'
|
|
|
|
|
|
|
|
use_react_native!(
|
|
use_react_native!(
|
|
|
:path => config[:reactNativePath],
|
|
:path => config[:reactNativePath],
|
|
@@ -137,36 +133,36 @@ target 'Strides' do
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def fix_library_search_paths(installer)
|
|
def fix_library_search_paths(installer)
|
|
|
- def fix_config(config)
|
|
|
|
|
- lib_search_paths = config.build_settings["LIBRARY_SEARCH_PATHS"]
|
|
|
|
|
- if lib_search_paths
|
|
|
|
|
- if lib_search_paths.include?("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)") || lib_search_paths.include?("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
|
|
|
|
|
- # $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) causes problem with Xcode 12.5 + arm64 (Apple M1)
|
|
|
|
|
- # since the libraries there are only built for x86_64 and i386.
|
|
|
|
|
- lib_search_paths.delete("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)")
|
|
|
|
|
- lib_search_paths.delete("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
|
|
|
|
|
- if !(lib_search_paths.include?("$(SDKROOT)/usr/lib/swift") || lib_search_paths.include?("\"$(SDKROOT)/usr/lib/swift\""))
|
|
|
|
|
- # however, $(SDKROOT)/usr/lib/swift is required, at least if user is not running CocoaPods 1.11
|
|
|
|
|
- lib_search_paths.insert(0, "$(SDKROOT)/usr/lib/swift")
|
|
|
|
|
- end
|
|
|
|
|
|
|
+ #def fix_config(config)
|
|
|
|
|
+ lib_search_paths = config.build_settings["LIBRARY_SEARCH_PATHS"]
|
|
|
|
|
+ if lib_search_paths
|
|
|
|
|
+ if lib_search_paths.include?("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)") || lib_search_paths.include?("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
|
|
|
|
|
+ # $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) causes problem with Xcode 12.5 + arm64 (Apple M1)
|
|
|
|
|
+ # since the libraries there are only built for x86_64 and i386.
|
|
|
|
|
+ lib_search_paths.delete("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)")
|
|
|
|
|
+ lib_search_paths.delete("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
|
|
|
|
|
+ if !(lib_search_paths.include?("$(SDKROOT)/usr/lib/swift") || lib_search_paths.include?("\"$(SDKROOT)/usr/lib/swift\""))
|
|
|
|
|
+ # however, $(SDKROOT)/usr/lib/swift is required, at least if user is not running CocoaPods 1.11
|
|
|
|
|
+ lib_search_paths.insert(0, "$(SDKROOT)/usr/lib/swift")
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
-
|
|
|
|
|
- projects = installer.aggregate_targets
|
|
|
|
|
- .map{ |t| t.user_project }
|
|
|
|
|
- .uniq{ |p| p.path }
|
|
|
|
|
- .push(installer.pods_project)
|
|
|
|
|
-
|
|
|
|
|
- projects.each do |project|
|
|
|
|
|
- project.build_configurations.each do |config|
|
|
|
|
|
- fix_config(config)
|
|
|
|
|
- end
|
|
|
|
|
- project.native_targets.each do |target|
|
|
|
|
|
- target.build_configurations.each do |config|
|
|
|
|
|
- fix_config(config)
|
|
|
|
|
- end
|
|
|
|
|
- end
|
|
|
|
|
- project.save()
|
|
|
|
|
- end
|
|
|
|
|
end
|
|
end
|
|
|
|
|
+
|
|
|
|
|
+# projects = installer.aggregate_targets
|
|
|
|
|
+# .map{ |t| t.user_project }
|
|
|
|
|
+# .uniq{ |p| p.path }
|
|
|
|
|
+# .push(installer.pods_project)
|
|
|
|
|
+
|
|
|
|
|
+# projects.each do |project|
|
|
|
|
|
+# project.build_configurations.each do |config|
|
|
|
|
|
+# fix_config(config)
|
|
|
|
|
+# end
|
|
|
|
|
+# project.native_targets.each do |target|
|
|
|
|
|
+# target.build_configurations.each do |config|
|
|
|
|
|
+# fix_config(config)
|
|
|
|
|
+# end
|
|
|
|
|
+# end
|
|
|
|
|
+# project.save()
|
|
|
|
|
+# end
|
|
|
|
|
+# end
|