Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ennioma committed Dec 30, 2016
2 parents ecbd8ab + f715d9e commit db23884
Show file tree
Hide file tree
Showing 16 changed files with 414 additions and 127 deletions.
140 changes: 92 additions & 48 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions Example/arek.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
75BCA2801DF34D5F008DE0E9 /* DemoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DemoViewController.swift; sourceTree = "<group>"; };
75BCA2811DF34D5F008DE0E9 /* DemoViewController+Table.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DemoViewController+Table.swift"; sourceTree = "<group>"; };
79B545C944A596DEFDE61F89 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
7F098B8C1E0A746700931032 /* arek_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = arek_Example.entitlements; sourceTree = "<group>"; };
7F098B8C1E0A746700931032 /* arek_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = arek_Example.entitlements; sourceTree = SOURCE_ROOT; };
7F098B8D1E0A746900931032 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; };
8FC7D6EEDE91A2965CEDDF3C /* Pods-arek_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-arek_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-arek_Tests/Pods-arek_Tests.debug.xcconfig"; sourceTree = "<group>"; };
E7608EDDBACEC07502992048 /* Pods-arek_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-arek_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-arek_Example/Pods-arek_Example.release.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -85,7 +85,6 @@
607FACC71AFB9204008FA782 = {
isa = PBXGroup;
children = (
7F098B8C1E0A746700931032 /* arek_Example.entitlements */,
607FACD21AFB9204008FA782 /* Example for arek */,
C7DD4ECCB1FF8CFDDAB5DB55 /* Frameworks */,
07872756BF36D7162CDBDC4C /* Pods */,
Expand Down Expand Up @@ -120,6 +119,7 @@
607FACD31AFB9204008FA782 /* Supporting Files */ = {
isa = PBXGroup;
children = (
7F098B8C1E0A746700931032 /* arek_Example.entitlements */,
607FACD41AFB9204008FA782 /* Info.plist */,
);
name = "Supporting Files";
Expand Down Expand Up @@ -219,7 +219,7 @@
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = 443FV7F3ZK;
LastSwiftMigration = 0810;
LastSwiftMigration = 0820;
SystemCapabilities = {
com.apple.Push = {
enabled = 1;
Expand All @@ -232,7 +232,7 @@
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = RZ864CB8MK;
LastSwiftMigration = 0810;
LastSwiftMigration = 0820;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -488,7 +488,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = EE2E8EA2B5C0B968D0B2947A /* Pods-arek_Example.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = arek_Example.entitlements;
DEVELOPMENT_TEAM = 443FV7F3ZK;
Expand All @@ -505,7 +504,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = E7608EDDBACEC07502992048 /* Pods-arek_Example.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = arek_Example.entitlements;
DEVELOPMENT_TEAM = 443FV7F3ZK;
Expand All @@ -522,7 +520,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 8FC7D6EEDE91A2965CEDDF3C /* Pods-arek_Tests.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
DEVELOPMENT_TEAM = RZ864CB8MK;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand All @@ -544,7 +541,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 59358A8477E69F5C48E44137 /* Pods-arek_Tests.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
DEVELOPMENT_TEAM = RZ864CB8MK;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand Down
40 changes: 19 additions & 21 deletions Example/arek/DemoViewController+Table.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import Foundation
import UIKit

import arek

extension DemoViewController: UITableViewDataSource, UITableViewDelegate {
private var cellId: String {
get {
Expand Down Expand Up @@ -36,22 +38,14 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {

@objc(tableView:cellForRowAtIndexPath:) func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let permission = self.permissions[indexPath.row]

let cell = tableView.dequeueReusableCell(withIdentifier: cellId)
?? UITableViewCell(style: .default, reuseIdentifier: cellId)

cell.textLabel?.textAlignment = .center

var symbol = ""
permission.status { (status) in
switch status {
case .Authorized:
symbol = ""
case .Denied:
symbol = "⛔️"
case .NotDetermined:
symbol = "🤔"
}
let symbol = self.symbol(status: status)

DispatchQueue.main.async {
cell.textLabel?.text = "\(symbol) \(permission.identifier) \(symbol)"
Expand All @@ -64,17 +58,8 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let permission = self.permissions[indexPath.row]

var symbol = ""

permission.manage { (status) in
switch status {
case .Authorized:
symbol = ""
case .Denied:
symbol = "⛔️"
case .NotDetermined:
symbol = "🤔"
}
let symbol = self.symbol(status: status)

print("\(symbol) \(permission.identifier) \(symbol)")

Expand All @@ -98,4 +83,17 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {

return headerView
}

func symbol(status: ArekPermissionStatus) -> String {
switch status {
case .Authorized:
return ""
case .Denied:
return "⛔️"
case .NotDetermined:
return "🤔"
case .NotAvailable:
return "🚫"
}
}
}
2 changes: 1 addition & 1 deletion Example/arek/DemoViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import arek
class DemoViewController: UIViewController {
weak var permissionsTV: UITableView!

var permissions: Array<ArekPermissionProtocol> = [ArekCamera(), ArekContacts(), ArekEvents(), ArekLocationAlways(), ArekMediaLibrary(), ArekMicrophone(), ArekNotifications(), ArekPhoto(), ArekReminders(), ArekSpeechRecognizer()]
var permissions: Array<ArekPermissionProtocol> = [ArekBluetooth(), ArekCamera(), ArekCloudKit(), ArekContacts(), ArekEvents(), ArekHealth(), ArekLocationAlways(), ArekMediaLibrary(), ArekMicrophone(), ArekMotion(), ArekNotifications(), ArekPhoto(), ArekReminders(), ArekSpeechRecognizer()]

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
Expand Down
10 changes: 8 additions & 2 deletions Example/arek/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,28 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Test message to ask 🙏 to access Bluetooth</string>
<key>NSCalendarsUsageDescription</key>
<string>Test message to ask 🙏 to access Calendar</string>
<key>NSCameraUsageDescription</key>
<string>Test message to ask 🙏 to access Camera</string>
<key>NSContactsUsageDescription</key>
<string>Test message to ask 🙏 to access Contacts</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Test message to ask 🙏 to access Location</string>
<key>NSAppleMusicUsageDescription</key>
<string>Test message to ask 🙏 to access Music</string>
<key>NSMicrophoneUsageDescription</key>
<string>Test message to ask 🙏 to access Microphone</string>
<key>NSMotionUsageDescription</key>
<string>Test message to ask 🙏 to access Motion</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Test message to ask 🙏 to access Photo Library</string>
<key>NSRemindersUsageDescription</key>
<string>Test message to ask 🙏 to access Reminders</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Test message to ask 🙏 to access Speech Recognition</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Test message to ask 🙏 to access Location</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
38 changes: 35 additions & 3 deletions ExampleSourceCode/ExampleSourceCode.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
75405D9B1DFA13A600A2BFDB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 75405D9A1DFA13A600A2BFDB /* Assets.xcassets */; };
75405DA91DFA13A600A2BFDB /* ExampleSourceCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75405DA81DFA13A600A2BFDB /* ExampleSourceCodeTests.swift */; };
75405DB41DFA13A600A2BFDB /* ExampleSourceCodeUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75405DB31DFA13A600A2BFDB /* ExampleSourceCodeUITests.swift */; };
757598E41E16AB6D007E8DDF /* ArekMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757598E01E16AB6D007E8DDF /* ArekMotion.swift */; };
757598E51E16AB6D007E8DDF /* ArekBluetooth.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757598E21E16AB6D007E8DDF /* ArekBluetooth.swift */; };
757598E61E16AB6D007E8DDF /* ArekBluetoothDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 757598E31E16AB6D007E8DDF /* ArekBluetoothDelegate.swift */; };
757598EA1E16B5B9007E8DDF /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 757598E91E16B5B9007E8DDF /* CoreMotion.framework */; };
75B2C1B91DFA13E800856E76 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75B2C1B61DFA13E800856E76 /* AppDelegate.swift */; };
75B2C1BA1DFA13E800856E76 /* DemoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75B2C1B71DFA13E800856E76 /* DemoViewController.swift */; };
75B2C1BB1DFA13E800856E76 /* DemoViewController+Table.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75B2C1B81DFA13E800856E76 /* DemoViewController+Table.swift */; };
Expand All @@ -32,7 +36,6 @@
75B2C1EC1DFA13F600856E76 /* ArekLocationAlways.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75B2C1D71DFA13F600856E76 /* ArekLocationAlways.swift */; };
75B2C1ED1DFA13F600856E76 /* ArekLocationWhenInUse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75B2C1D81DFA13F600856E76 /* ArekLocationWhenInUse.swift */; };
75BE32121DFA170E000A4060 /* ArekCloudKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75BE32111DFA170E000A4060 /* ArekCloudKit.swift */; };
75BE32151DFA1750000A4060 /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75BE32141DFA1750000A4060 /* CloudKit.framework */; };
F5E985921E0A85E4004ABDCE /* ArekEvents.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5E9858E1E0A85E4004ABDCE /* ArekEvents.swift */; };
F5E985931E0A85E4004ABDCE /* ArekMediaLibrary.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5E9858F1E0A85E4004ABDCE /* ArekMediaLibrary.swift */; };
F5E985941E0A85E4004ABDCE /* ArekReminders.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5E985901E0A85E4004ABDCE /* ArekReminders.swift */; };
Expand Down Expand Up @@ -66,6 +69,10 @@
75405DAF1DFA13A600A2BFDB /* ExampleSourceCodeUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleSourceCodeUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
75405DB31DFA13A600A2BFDB /* ExampleSourceCodeUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleSourceCodeUITests.swift; sourceTree = "<group>"; };
75405DB51DFA13A600A2BFDB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
757598E01E16AB6D007E8DDF /* ArekMotion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArekMotion.swift; sourceTree = "<group>"; };
757598E21E16AB6D007E8DDF /* ArekBluetooth.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArekBluetooth.swift; sourceTree = "<group>"; };
757598E31E16AB6D007E8DDF /* ArekBluetoothDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArekBluetoothDelegate.swift; sourceTree = "<group>"; };
757598E91E16B5B9007E8DDF /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
75B2C1B61DFA13E800856E76 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
75B2C1B71DFA13E800856E76 /* DemoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DemoViewController.swift; sourceTree = "<group>"; };
75B2C1B81DFA13E800856E76 /* DemoViewController+Table.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "DemoViewController+Table.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -100,7 +107,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
75BE32151DFA1750000A4060 /* CloudKit.framework in Frameworks */,
757598EA1E16B5B9007E8DDF /* CoreMotion.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -150,7 +157,7 @@
75405D9A1DFA13A600A2BFDB /* Assets.xcassets */,
75B2C1B71DFA13E800856E76 /* DemoViewController.swift */,
75B2C1B81DFA13E800856E76 /* DemoViewController+Table.swift */,
75405D9F1DFA13A600A2BFDB /* Info.plist */,
757598E81E16AEC4007E8DDF /* Supporting Files */,
);
path = ExampleSourceCode;
sourceTree = "<group>";
Expand All @@ -173,6 +180,23 @@
path = ExampleSourceCodeUITests;
sourceTree = "<group>";
};
757598E11E16AB6D007E8DDF /* Bluetooth */ = {
isa = PBXGroup;
children = (
757598E21E16AB6D007E8DDF /* ArekBluetooth.swift */,
757598E31E16AB6D007E8DDF /* ArekBluetoothDelegate.swift */,
);
path = Bluetooth;
sourceTree = "<group>";
};
757598E81E16AEC4007E8DDF /* Supporting Files */ = {
isa = PBXGroup;
children = (
75405D9F1DFA13A600A2BFDB /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
75B2C1BC1DFA13F600856E76 /* arek */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -232,10 +256,12 @@
75B2C1CC1DFA13F600856E76 /* ArekHealth.swift */,
F5E9858F1E0A85E4004ABDCE /* ArekMediaLibrary.swift */,
75B2C1CD1DFA13F600856E76 /* ArekMicrophone.swift */,
757598E01E16AB6D007E8DDF /* ArekMotion.swift */,
75B2C1CE1DFA13F600856E76 /* ArekNotifications.swift */,
75B2C1CF1DFA13F600856E76 /* ArekPhoto.swift */,
F5E985901E0A85E4004ABDCE /* ArekReminders.swift */,
F5E985911E0A85E4004ABDCE /* ArekSpeechRecognizer.swift */,
757598E11E16AB6D007E8DDF /* Bluetooth */,
75B2C1D41DFA13F600856E76 /* Location */,
);
path = Permissions;
Expand All @@ -255,6 +281,7 @@
75BE32131DFA174F000A4060 /* Frameworks */ = {
isa = PBXGroup;
children = (
757598E91E16B5B9007E8DDF /* CoreMotion.framework */,
75BE32141DFA1750000A4060 /* CloudKit.framework */,
);
name = Frameworks;
Expand Down Expand Up @@ -408,14 +435,17 @@
75B2C1E61DFA13F600856E76 /* ArekPhoto.swift in Sources */,
75B2C1EA1DFA13F600856E76 /* ArekBaseLocation.swift in Sources */,
F5E985941E0A85E4004ABDCE /* ArekReminders.swift in Sources */,
757598E41E16AB6D007E8DDF /* ArekMotion.swift in Sources */,
75B2C1E41DFA13F600856E76 /* ArekMicrophone.swift in Sources */,
F5E985921E0A85E4004ABDCE /* ArekEvents.swift in Sources */,
75B2C1E21DFA13F600856E76 /* ArekContacts.swift in Sources */,
757598E61E16AB6D007E8DDF /* ArekBluetoothDelegate.swift in Sources */,
75B2C1DF1DFA13F600856E76 /* ArekPermissionStatus.swift in Sources */,
75B2C1EB1DFA13F600856E76 /* ArekBaseLocationDelegate.swift in Sources */,
75B2C1BB1DFA13E800856E76 /* DemoViewController+Table.swift in Sources */,
75B2C1EC1DFA13F600856E76 /* ArekLocationAlways.swift in Sources */,
75B2C1BA1DFA13E800856E76 /* DemoViewController.swift in Sources */,
757598E51E16AB6D007E8DDF /* ArekBluetooth.swift in Sources */,
F5E985931E0A85E4004ABDCE /* ArekMediaLibrary.swift in Sources */,
75B2C1E01DFA13F600856E76 /* ArekPopupData.swift in Sources */,
75BE32121DFA170E000A4060 /* ArekCloudKit.swift in Sources */,
Expand Down Expand Up @@ -550,6 +580,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "";
INFOPLIST_FILE = ExampleSourceCode/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand All @@ -565,6 +596,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = "";
INFOPLIST_FILE = ExampleSourceCode/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
Expand Down
36 changes: 16 additions & 20 deletions ExampleSourceCode/ExampleSourceCode/DemoViewController+Table.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,8 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {

cell.textLabel?.textAlignment = .center

var symbol = ""
permission.status { (status) in
switch status {
case .Authorized:
symbol = ""
case .Denied:
symbol = "⛔️"
case .NotDetermined:
symbol = "🤔"
}
let symbol = self.symbol(status: status)

DispatchQueue.main.async {
cell.textLabel?.text = "\(symbol) \(permission.identifier) \(symbol)"
Expand All @@ -63,18 +55,9 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let permission = self.permissions[indexPath.row]

var symbol = ""


permission.manage { (status) in
switch status {
case .Authorized:
symbol = ""
case .Denied:
symbol = "⛔️"
case .NotDetermined:
symbol = "🤔"
}
let symbol = self.symbol(status: status)

print("\(symbol) \(permission.identifier) \(symbol)")

Expand All @@ -98,4 +81,17 @@ extension DemoViewController: UITableViewDataSource, UITableViewDelegate {

return headerView
}

func symbol(status: ArekPermissionStatus) -> String {
switch status {
case .Authorized:
return ""
case .Denied:
return "⛔️"
case .NotDetermined:
return "🤔"
case .NotAvailable:
return "🚫"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
class DemoViewController: UIViewController {
weak var permissionsTV: UITableView!

var permissions: Array<ArekPermissionProtocol> = [ArekCamera(), ArekContacts(), ArekEvents(), ArekLocationAlways(), ArekMediaLibrary(), ArekMicrophone(), ArekNotifications(), ArekPhoto(), ArekReminders(), ArekSpeechRecognizer()]
var permissions: Array<ArekPermissionProtocol> = [ArekBluetooth(), ArekCamera(), ArekContacts(), ArekEvents(), ArekHealth(), ArekLocationAlways(), ArekMediaLibrary(), ArekMicrophone(), ArekMotion(), ArekNotifications(), ArekPhoto(), ArekReminders(), ArekSpeechRecognizer()]

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
Expand Down
Loading

0 comments on commit db23884

Please sign in to comment.