@applicaster/quick-brick-native-apple 5.20.6 → 5.20.8
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/apple/QuickBrickApple.podspec.json +2 -2
- package/apple/ios/{ReactNativeOrientation.swift → Extensions/ReactNativeOrientation+Extensions.swift} +2 -11
- package/apple/tvos/ReactNative/QuickBrickViewController.swift +1 -1
- package/apple/universal/Models/ReactNativeOrientation.swift +20 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "QuickBrickApple",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.8",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"ios": "14.0",
|
|
6
6
|
"tvos": "14.0"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"authors": "Applicaster LTD.",
|
|
17
17
|
"source": {
|
|
18
18
|
"git": "https://github.com/applicaster/Zapp-Frameworks.git",
|
|
19
|
-
"tag": "@@applicaster/quick-brick-native-apple/5.20.
|
|
19
|
+
"tag": "@@applicaster/quick-brick-native-apple/5.20.8"
|
|
20
20
|
},
|
|
21
21
|
"requires_arc": true,
|
|
22
22
|
"source_files": "universal/**/*.{m,swift}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// ReactNativeOrientation.swift
|
|
2
|
+
// ReactNativeOrientation+Extensions.swift
|
|
3
3
|
// QuickBrickApple
|
|
4
4
|
//
|
|
5
5
|
// Created by Anna Bauza on 03/02/2020.
|
|
@@ -8,16 +8,7 @@
|
|
|
8
8
|
import UIKit
|
|
9
9
|
import ZappCore
|
|
10
10
|
|
|
11
|
-
public
|
|
12
|
-
case unknown = 0
|
|
13
|
-
case portrait = 1
|
|
14
|
-
case landscapeRight = 2
|
|
15
|
-
case landscapeLeft = 4
|
|
16
|
-
case portraitUpsideDown = 8
|
|
17
|
-
case landscape = 6
|
|
18
|
-
case all = 15
|
|
19
|
-
case allButUpsideDown = 7
|
|
20
|
-
|
|
11
|
+
public extension ReactNativeOrientation {
|
|
21
12
|
static func fromInterfaceOrientation(orientation: UIInterfaceOrientation) -> ReactNativeOrientation {
|
|
22
13
|
switch orientation {
|
|
23
14
|
case .portrait:
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ReactNativeOrientation.swift
|
|
3
|
+
// QuickBrickApple
|
|
4
|
+
//
|
|
5
|
+
// Created by Anna Bauza on 03/02/2020.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
import UIKit
|
|
9
|
+
import ZappCore
|
|
10
|
+
|
|
11
|
+
public enum ReactNativeOrientation: Int {
|
|
12
|
+
case unknown = 0
|
|
13
|
+
case portrait = 1
|
|
14
|
+
case landscapeRight = 2
|
|
15
|
+
case landscapeLeft = 4
|
|
16
|
+
case portraitUpsideDown = 8
|
|
17
|
+
case landscape = 6
|
|
18
|
+
case all = 15
|
|
19
|
+
case allButUpsideDown = 7
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-native-apple",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.8",
|
|
4
4
|
"description": "iOS and tvOS native code for QuickBrick applications. This package is used to provide native logic for QuickBrick",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|