@ionic/portals-react-native 0.5.2 → 0.7.0

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.
Files changed (49) hide show
  1. package/ReactNativePortals.podspec +39 -14
  2. package/android/build.gradle +78 -108
  3. package/android/gradle.properties +5 -3
  4. package/android/src/main/java/io/ionic/portals/reactnative/PortalView.kt +11 -8
  5. package/android/src/main/java/io/ionic/portals/reactnative/ReactNativePortalManager.kt +24 -24
  6. package/android/src/main/java/io/ionic/portals/reactnative/ReactNativePortalsModule.kt +0 -34
  7. package/android/src/main/java/io/ionic/portals/reactnative/ReactNativeWebVitalsModule.kt +0 -34
  8. package/ios/AssetMap+Codable.swift +33 -0
  9. package/ios/LiveUpdateManager+Async.swift +16 -46
  10. package/ios/Podfile +29 -4
  11. package/ios/Podfile.lock +478 -241
  12. package/ios/Portal.swift +50 -54
  13. package/ios/{PortalManager.m → PortalManager.mm} +0 -3
  14. package/ios/PortalView.swift +22 -12
  15. package/ios/{PortalWebVitals.m → PortalWebVitals.mm} +0 -1
  16. package/ios/PortalsConfig.swift +1 -88
  17. package/ios/PortalsReactNative-Bridging-Header.h +2 -0
  18. package/ios/PortalsReactNative.swift +17 -51
  19. package/ios/SyncResult+SyncError+Encodable.swift +55 -0
  20. package/ios/WebVitals.swift +17 -34
  21. package/package.json +62 -43
  22. package/src/{PortalView.android.tsx → BasePortalView.android.tsx} +2 -3
  23. package/src/{PortalView.tsx → BasePortalView.tsx} +2 -3
  24. package/src/{index.ts → index.tsx} +43 -96
  25. package/ios/AssetMap+Dict.swift +0 -28
  26. package/ios/LiveUpdate+Dict.swift +0 -30
  27. package/ios/LiveUpdateManagerError+Dict.swift +0 -19
  28. package/ios/ReactNativePortals.xcodeproj/project.pbxproj +0 -465
  29. package/ios/ReactNativePortals.xcodeproj/xcshareddata/xcschemes/ReactNativePortals.xcscheme +0 -67
  30. package/ios/ReactNativePortals.xcworkspace/contents.xcworkspacedata +0 -10
  31. package/ios/ReactNativePortals.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  32. package/ios/SyncResult+Dict.swift +0 -35
  33. package/lib/commonjs/PortalView.android.js +0 -28
  34. package/lib/commonjs/PortalView.android.js.map +0 -1
  35. package/lib/commonjs/PortalView.js +0 -15
  36. package/lib/commonjs/PortalView.js.map +0 -1
  37. package/lib/commonjs/index.js +0 -200
  38. package/lib/commonjs/index.js.map +0 -1
  39. package/lib/module/PortalView.android.js +0 -20
  40. package/lib/module/PortalView.android.js.map +0 -1
  41. package/lib/module/PortalView.js +0 -8
  42. package/lib/module/PortalView.js.map +0 -1
  43. package/lib/module/index.js +0 -176
  44. package/lib/module/index.js.map +0 -1
  45. package/lib/typescript/PortalView.android.d.ts +0 -4
  46. package/lib/typescript/PortalView.d.ts +0 -4
  47. package/lib/typescript/index.d.ts +0 -181
  48. /package/ios/{PortalView.m → PortalView.mm} +0 -0
  49. /package/ios/{PortalsPubSub.m → PortalsPubSub.mm} +0 -0
package/ios/Podfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../node_modules/react-native/scripts/react_native_pods'
2
4
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
5
 
@@ -6,9 +8,32 @@ platform :ios, '14.0'
6
8
  target 'ReactNativePortals' do
7
9
  # Comment the next line if you don't want to use dynamic frameworks
8
10
  config = use_native_modules!
9
- use_frameworks!
10
- use_react_native!(path: config['reactNativePath'])
11
+ use_react_native!(path: config[:reactNativePath])
11
12
  # Pods for ReactNativePortals
12
- pod 'IonicPortals', '~> 0.8.0'
13
- pod 'IonicLiveUpdates', '~> 0.4.0'
13
+ pod 'IonicPortals', '~> 0.11.0'
14
+ pod 'IonicLiveUpdates', '~> 0.5.2'
15
+ end
16
+
17
+ dynamic_frameworks = ['Capacitor', 'CapacitorCordova']
18
+
19
+ pre_install do |installer|
20
+ installer.pod_targets.each do |pod|
21
+ if dynamic_frameworks.include?(pod.name)
22
+ def pod.static_framework?
23
+ false
24
+ end
25
+ def pod.build_type
26
+ Pod::BuildType.dynamic_framework
27
+ end
28
+ end
29
+ end
30
+ end
31
+
32
+ post_install do |installer|
33
+ installer.pods_project.targets.each do |target|
34
+ target.build_configurations.each do |config|
35
+ config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)',
36
+ '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
37
+ end
38
+ end
14
39
  end