Skip to content

Commit 357bee8

Browse files
committed
feat: IonicPortals 0.5.1 updates
1 parent 2582579 commit 357bee8

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

packages/ionic-portals/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class IonicPortal extends IonicPortalCommon {
2626
throw new Error(`IonicPortal requires an 'id' property.`);
2727
}
2828
const portal = PortalManager.getPortalError(this.id);
29-
const portalWebView = PortalWebView.alloc().initWithFramePortal(CGRectMake(0, 0, this.parent.ios.bounds.size.width, this.parent.ios.bounds.size.height), portal);
29+
const portalWebView = PortalWebView.alloc().initWithPortal(portal);
3030
return portalWebView;
3131
}
3232

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
platform :ios, '14.0'
2+
13
pod 'IonicPortals', '~> 0.5.1'

packages/ionic-portals/typings/objc!IonicPortals.d.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
declare var IonicPortalsVersionNumber: number;
32

43
declare var IonicPortalsVersionNumberVar: number;
@@ -8,14 +7,12 @@ declare var IonicPortalsVersionString: interop.Reference<number>;
87
declare var IonicPortalsVersionStringVar: interop.Reference<number>;
98

109
declare class Portal extends NSObject {
11-
1210
static alloc(): Portal; // inherited from NSObject
1311

1412
static new(): Portal; // inherited from NSObject
1513
}
1614

1715
declare class PortalBuilder extends NSObject {
18-
1916
static alloc(): PortalBuilder; // inherited from NSObject
2017

2118
static new(): PortalBuilder; // inherited from NSObject
@@ -32,7 +29,6 @@ declare class PortalBuilder extends NSObject {
3229
}
3330

3431
declare class PortalManager extends NSObject {
35-
3632
static addPortal(portal: Portal): void;
3733

3834
static alloc(): PortalManager; // inherited from NSObject
@@ -51,7 +47,6 @@ declare class PortalManager extends NSObject {
5147
}
5248

5349
declare class PortalWebView extends UIView {
54-
5550
static alloc(): PortalWebView; // inherited from NSObject
5651

5752
static appearance(): PortalWebView; // inherited from UIAppearance
@@ -68,20 +63,18 @@ declare class PortalWebView extends UIView {
6863

6964
static new(): PortalWebView; // inherited from NSObject
7065

71-
constructor(o: { frame: CGRect; portal: Portal; });
66+
constructor(o: { portal: Portal });
7267

73-
initWithFramePortal(frame: CGRect, portal: Portal): this;
68+
initWithPortal(portal: Portal): this;
7469
}
7570

7671
declare class PortalsPlugin extends CAPPlugin {
77-
7872
static alloc(): PortalsPlugin; // inherited from NSObject
7973

8074
static new(): PortalsPlugin; // inherited from NSObject
8175
}
8276

8377
declare class UnregisteredView extends UIView {
84-
8578
static alloc(): UnregisteredView; // inherited from NSObject
8679

8780
static appearance(): UnregisteredView; // inherited from UIAppearance
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
platform :ios, '14.0'
1+
# platform :ios, '14.0'
22

33
post_install do |installer|
44
installer.pods_project.targets.each do |target|
55
target.build_configurations.each do |config|
6-
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
6+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
7+
# config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
78
end
89
end
910
end

tools/assets/App_Resources/iOS/build.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
55
// DEVELOPMENT_TEAM = YOUR_TEAM_ID;
66
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7-
IPHONEOS_DEPLOYMENT_TARGET = 14.0
7+
IPHONEOS_DEPLOYMENT_TARGET = 12.0

0 commit comments

Comments
 (0)