@ionic/portals-react-native 0.2.0 → 0.3.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.
- package/ReactNativePortals.podspec +14 -14
- package/android/build.gradle +4 -5
- package/android/gradle.properties +1 -1
- package/ios/Podfile +2 -3
- package/ios/Podfile.lock +9 -9
- package/lib/typescript/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'json'
|
|
2
2
|
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__,
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
4
|
|
|
5
5
|
Pod::Spec.new do |s|
|
|
6
|
-
s.name =
|
|
7
|
-
s.version = package[
|
|
8
|
-
s.summary = package[
|
|
9
|
-
s.homepage = package[
|
|
10
|
-
s.license = package[
|
|
11
|
-
s.authors = package[
|
|
6
|
+
s.name = 'ReactNativePortals'
|
|
7
|
+
s.version = package['version']
|
|
8
|
+
s.summary = package['description']
|
|
9
|
+
s.homepage = package['homepage']
|
|
10
|
+
s.license = package['license']
|
|
11
|
+
s.authors = package['author']
|
|
12
12
|
|
|
13
|
-
s.platforms = { :
|
|
14
|
-
s.source = { :
|
|
13
|
+
s.platforms = { ios: '13.0' }
|
|
14
|
+
s.source = { git: 'https://github.com/ionic-team/react-native-ionic-portals.git', tag: "#{s.version}" }
|
|
15
15
|
|
|
16
|
-
s.source_files =
|
|
16
|
+
s.source_files = 'ios/**/*.{h,m,mm,swift}'
|
|
17
17
|
|
|
18
|
-
s.dependency
|
|
19
|
-
s.dependency
|
|
20
|
-
s.dependency
|
|
18
|
+
s.dependency 'React-Core'
|
|
19
|
+
s.dependency 'IonicPortals', '~> 0.7.0'
|
|
20
|
+
s.dependency 'IonicLiveUpdates', '~> 0.2.0'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -45,13 +45,12 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
|
45
45
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
46
46
|
|
|
47
47
|
kotlinOptions {
|
|
48
|
-
freeCompilerArgs += '-
|
|
48
|
+
freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
repositories {
|
|
53
53
|
mavenCentral()
|
|
54
|
-
jcenter()
|
|
55
54
|
google()
|
|
56
55
|
|
|
57
56
|
def found = false
|
|
@@ -124,9 +123,9 @@ dependencies {
|
|
|
124
123
|
//noinspection GradleDynamicVersion
|
|
125
124
|
api 'com.facebook.react:react-native:+'
|
|
126
125
|
//noinspection GradleDynamicVersion
|
|
127
|
-
api "io.ionic:portals:0.
|
|
126
|
+
api "io.ionic:portals:0.7.+"
|
|
128
127
|
//noinspection GradleDynamicVersion
|
|
129
|
-
api "io.ionic:liveupdates:0.
|
|
128
|
+
api "io.ionic:liveupdates:0.2.+"
|
|
130
129
|
|
|
131
|
-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.
|
|
130
|
+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.3"
|
|
132
131
|
}
|
package/ios/Podfile
CHANGED
|
@@ -7,9 +7,8 @@ target 'ReactNativePortals' do
|
|
|
7
7
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
8
8
|
config = use_native_modules!
|
|
9
9
|
use_frameworks!
|
|
10
|
-
use_react_native!(:
|
|
10
|
+
use_react_native!(path: config['reactNativePath'])
|
|
11
11
|
# Pods for ReactNativePortals
|
|
12
|
-
pod 'IonicPortals', '~> 0.
|
|
12
|
+
pod 'IonicPortals', '~> 0.7.0'
|
|
13
13
|
pod 'IonicLiveUpdates', '~> 0.2.0'
|
|
14
14
|
end
|
|
15
|
-
|
package/ios/Podfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PODS:
|
|
2
2
|
- boost-for-react-native (1.63.0)
|
|
3
|
-
- Capacitor (
|
|
3
|
+
- Capacitor (4.5.0):
|
|
4
4
|
- CapacitorCordova
|
|
5
|
-
- CapacitorCordova (
|
|
5
|
+
- CapacitorCordova (4.5.0)
|
|
6
6
|
- DoubleConversion (1.1.6)
|
|
7
7
|
- FBLazyVector (0.63.4)
|
|
8
8
|
- FBReactNativeSpec (0.63.4):
|
|
@@ -23,8 +23,8 @@ PODS:
|
|
|
23
23
|
- glog
|
|
24
24
|
- glog (0.3.5)
|
|
25
25
|
- IonicLiveUpdates (0.2.0)
|
|
26
|
-
- IonicPortals (0.
|
|
27
|
-
- Capacitor (~>
|
|
26
|
+
- IonicPortals (0.7.0):
|
|
27
|
+
- Capacitor (~> 4.4)
|
|
28
28
|
- IonicLiveUpdates (< 0.3.0, >= 0.1.2)
|
|
29
29
|
- RCTRequired (0.63.4)
|
|
30
30
|
- RCTTypeSafety (0.63.4):
|
|
@@ -261,7 +261,7 @@ DEPENDENCIES:
|
|
|
261
261
|
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
|
|
262
262
|
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
|
263
263
|
- IonicLiveUpdates (~> 0.2.0)
|
|
264
|
-
- IonicPortals (~> 0.
|
|
264
|
+
- IonicPortals (~> 0.7.0)
|
|
265
265
|
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
|
|
266
266
|
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
|
|
267
267
|
- React (from `../node_modules/react-native/`)
|
|
@@ -350,15 +350,15 @@ EXTERNAL SOURCES:
|
|
|
350
350
|
|
|
351
351
|
SPEC CHECKSUMS:
|
|
352
352
|
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
|
|
353
|
-
Capacitor:
|
|
354
|
-
CapacitorCordova:
|
|
353
|
+
Capacitor: c09c7031f87bef4a4b9883866115806654ba0865
|
|
354
|
+
CapacitorCordova: d6cf164af488874853a89579c06b877048a656ce
|
|
355
355
|
DoubleConversion: cde416483dac037923206447da6e1454df403714
|
|
356
356
|
FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e
|
|
357
357
|
FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e
|
|
358
358
|
Folly: b73c3869541e86821df3c387eb0af5f65addfab4
|
|
359
359
|
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
|
|
360
360
|
IonicLiveUpdates: e9cfcb6cbcf67d7b171eae417fa2802cc5826d72
|
|
361
|
-
IonicPortals:
|
|
361
|
+
IonicPortals: fd21c96f9088312fc8d7ace4583c0a5f4e2ed876
|
|
362
362
|
RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e
|
|
363
363
|
RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b
|
|
364
364
|
React: b0a957a2c44da4113b0c4c9853d8387f8e64e615
|
|
@@ -381,6 +381,6 @@ SPEC CHECKSUMS:
|
|
|
381
381
|
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
|
|
382
382
|
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
|
|
383
383
|
|
|
384
|
-
PODFILE CHECKSUM:
|
|
384
|
+
PODFILE CHECKSUM: 353df7c7b25664ae757fa202af97c22b61c3affa
|
|
385
385
|
|
|
386
386
|
COCOAPODS: 1.11.2
|
|
@@ -63,13 +63,13 @@ export interface Portal {
|
|
|
63
63
|
* A subset of {@link Portal} properties needed for rendering a Portal. `initialContext` can be used to override
|
|
64
64
|
* any initialContext defined in the original {@link Portal} definition.
|
|
65
65
|
*/
|
|
66
|
-
export
|
|
66
|
+
export type PortalProp = {
|
|
67
67
|
portal: Pick<Portal, 'name' | 'initialContext'>;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* Props needed for rendering a {@link Portal}
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
72
|
+
export type PortalProps = PortalProp & ViewProps;
|
|
73
73
|
/**
|
|
74
74
|
* Adds a Portal to an internal registry. Must be called before attempting to render a {@link PortalView}.
|
|
75
75
|
*
|
|
@@ -98,7 +98,7 @@ export interface LiveUpdate {
|
|
|
98
98
|
channel: string;
|
|
99
99
|
}
|
|
100
100
|
/** Data needed to register a live update to be managed */
|
|
101
|
-
export
|
|
101
|
+
export type LiveUpdateConfig = LiveUpdate & {
|
|
102
102
|
syncOnAdd: boolean;
|
|
103
103
|
};
|
|
104
104
|
export interface LiveUpdateError {
|