Skip to content

Commit

Permalink
Clean struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Jan 31, 2022
1 parent 04b4eb0 commit d6606bd
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Example Apps/AppImport/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
.library(name: "AppImport", targets: ["AppImport"]),
],
dependencies: [
.package(name: "SparrowKit", url: "https://github.com/ivanvorobei/SparrowKit", .upToNextMajor(from: "3.4.3")),
.package(name: "SparrowKit", url: "https://github.com/ivanvorobei/SparrowKit", .upToNextMajor(from: "3.5.1")),
.package(name: "SPPermissions", path: "SPPermissions")
],
targets: [
Expand Down
22 changes: 11 additions & 11 deletions Example Apps/SPPermissions.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
F47CBB0D265182DC00A8A00F /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
F47CBB0F265182DC00A8A00F /* RootController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RootController.swift; sourceTree = "<group>"; };
F47CBB16265186CD00A8A00F /* RootControllerExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootControllerExtension.swift; sourceTree = "<group>"; };
F4C77E9E266D5A16001D5870 /* iOS Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "iOS Example.entitlements"; sourceTree = "<group>"; };
F4C77E9E266D5A16001D5870 /* Entitlements.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Entitlements.entitlements; sourceTree = "<group>"; };
F4E350E32651BC8800D2CA45 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
F4FD4D2B2651008300B53BD9 /* SPPermissions */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SPPermissions; path = ..; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -134,19 +134,19 @@
F471BDB5264A5993000693BC /* iOS Example */ = {
isa = PBXGroup;
children = (
F4C77E9E266D5A16001D5870 /* iOS Example.entitlements */,
F471BDC8264A5B5F000693BC /* App */,
F471BDFC264A629A000693BC /* Recources */,
F471BDFB264A6291000693BC /* Scenes */,
F42F10C326524EA400D5B314 /* Localization */,
F471BDC4264A5995000693BC /* Info.plist */,
);
path = "iOS Example";
sourceTree = "<group>";
};
F471BDC8264A5B5F000693BC /* App */ = {
isa = PBXGroup;
children = (
F471BDC4264A5995000693BC /* Info.plist */,
F4C77E9E266D5A16001D5870 /* Entitlements.entitlements */,
F471BDB6264A5993000693BC /* AppDelegate.swift */,
F4E350E32651BC8800D2CA45 /* LaunchScreen.storyboard */,
);
Expand Down Expand Up @@ -592,11 +592,11 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_ENTITLEMENTS = "iOS Example/iOS Example.entitlements";
CODE_SIGN_ENTITLEMENTS = "iOS Example/App/Entitlements.entitlements";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 5KKK9SKF79;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -613,7 +613,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "iOS Example/Info.plist";
INFOPLIST_FILE = "iOS Example/App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -622,7 +622,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios2;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(SPPERMISSIONS_FLAGS)";
Expand Down Expand Up @@ -668,11 +668,11 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_ENTITLEMENTS = "iOS Example/iOS Example.entitlements";
CODE_SIGN_ENTITLEMENTS = "iOS Example/App/Entitlements.entitlements";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 5KKK9SKF79;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -683,15 +683,15 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "iOS Example/Info.plist";
INFOPLIST_FILE = "iOS Example/App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios2;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/ivanvorobei/SparrowKit",
"state": {
"branch": null,
"revision": "be8adcf0d1f91f04eed460faee78852d15d75acc",
"version": "3.4.3"
"revision": "df2ba76dd6a27dfe721a193bb3a7888e311693d1",
"version": "3.5.1"
}
}
]
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions Example Apps/iOS Example/Scenes/RootControllerExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ extension RootController {
cell?.accessoryType = .checkmark
selectedPermissions.append(permission)
}

print("--- \(permission.localisedName) ---")
switch permission.status {
case .authorized: print("authorised")
case .denied: print("authorised")
case .notDetermined: print("notDetermined")
default: break
}
}

override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
Expand Down
2 changes: 1 addition & 1 deletion SPPermissions.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SPPermissions"
s.version = "7.1.2"
s.version = "7.1.4"
s.summary = "Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI."
s.homepage = "https://github.com/ivanvorobei/SPPermissions"
s.source = { :git => "https://github.com/ivanvorobei/SPPermissions.git", :tag => s.version }
Expand Down

0 comments on commit d6606bd

Please sign in to comment.