Skip to content

Commit

Permalink
Merge pull request #287 from sparrowcode/v8
Browse files Browse the repository at this point in the history
V8
  • Loading branch information
ivanvorobei authored Apr 17, 2022
2 parents ee8f60d + c0e2d2c commit 304a8b8
Show file tree
Hide file tree
Showing 169 changed files with 1,189 additions and 1,353 deletions.
34 changes: 17 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ If you can't find valid, add new to codestyle agreements please. Other can be us

List of using for permissions:

- SPPERMISSIONS_CAMERA
- SPPERMISSIONS_CONTACTS
- SPPERMISSIONS_CALENDAR
- SPPERMISSIONS_PHOTOLIBRARY
- SPPERMISSIONS_NOTIFICATION
- SPPERMISSIONS_MICROPHONE
- SPPERMISSIONS_REMINDERS
- SPPERMISSIONS_SPEECHRECOGNIZER
- SPPERMISSIONS_LOCATION_WHENINUSE
- SPPERMISSIONS_LOCATION_ALWAYS
- SPPERMISSIONS_MOTION
- SPPERMISSIONS_MUSIC
- SPPERMISSIONS_BLUETOOTH
- SPPERMISSIONS_TRACKING
- SPPERMISSIONS_SIRI
- PERMISSIONKIT_CAMERA
- PERMISSIONKIT_CONTACTS
- PERMISSIONKIT_CALENDAR
- PERMISSIONKIT_PHOTOLIBRARY
- PERMISSIONKIT_NOTIFICATION
- PERMISSIONKIT_MICROPHONE
- PERMISSIONKIT_REMINDERS
- PERMISSIONKIT_SPEECHRECOGNIZER
- PERMISSIONKIT_LOCATION_WHENINUSE
- PERMISSIONKIT_LOCATION_ALWAYS
- PERMISSIONKIT_MOTION
- PERMISSIONKIT_MEDIA_LIBRARY
- PERMISSIONKIT_BLUETOOTH
- PERMISSIONKIT_TRACKING
- PERMISSIONKIT_SIRI

List of using for code manage:

- SPPERMISSIONS_SPM
- SPPERMISSIONS_COCOAPODS
- PERMISSIONKIT_SPM
- PERMISSIONKIT_COCOAPODS

44 changes: 0 additions & 44 deletions Example Apps/AppImport/Package.swift

This file was deleted.

44 changes: 44 additions & 0 deletions Example Apps/Modules/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// swift-tools-version: 5.4

import PackageDescription

let package = Package(
name: "Modules",
platforms: [
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v3)
],
products: [
.library(name: "Modules", targets: ["Modules"]),
],
dependencies: [
.package(name: "SparrowKit", url: "https://github.com/ivanvorobei/SparrowKit", .upToNextMajor(from: "3.6.1")),
.package(name: "PermissionsKit", path: "PermissionsKit")
],
targets: [
.target(
name: "Modules",
dependencies: [
.product(name: "SparrowKit", package: "SparrowKit"),
.product(name: "CameraPermission", package: "PermissionsKit"),
.product(name: "PhotoLibraryPermission", package: "PermissionsKit"),
.product(name: "NotificationPermission", package: "PermissionsKit"),
.product(name: "MicrophonePermission", package: "PermissionsKit"),
.product(name: "CalendarPermission", package: "PermissionsKit"),
.product(name: "ContactsPermission", package: "PermissionsKit"),
.product(name: "RemindersPermission", package: "PermissionsKit"),
.product(name: "SpeechRecognizerPermission", package: "PermissionsKit"),
.product(name: "LocationWhenInUsePermission", package: "PermissionsKit"),
.product(name: "LocationAlwaysPermission", package: "PermissionsKit"),
.product(name: "MotionPermission", package: "PermissionsKit"),
.product(name: "MediaLibraryPermission", package: "PermissionsKit"),
.product(name: "BluetoothPermission", package: "PermissionsKit"),
.product(name: "TrackingPermission", package: "PermissionsKit"),
.product(name: "FaceIDPermission", package: "PermissionsKit"),
.product(name: "SiriPermission", package: "PermissionsKit"),
.product(name: "HealthPermission", package: "PermissionsKit")
]
),
]
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The MIT License (MIT)
// Copyright © 2020 Ivan Vorobei (hello@ivanvorobei.io)
// Copyright © 2020 Sparrow Code LTD (https://sparrowcode.io, hello@sparrowcode.io)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

/* Begin PBXBuildFile section */
F42F10C626524EC600D5B314 /* InfoPlist.strings in Sources */ = {isa = PBXBuildFile; fileRef = F42F10C826524EC600D5B314 /* InfoPlist.strings */; };
F457C6A8276926E0005B4E19 /* AppImport in Frameworks */ = {isa = PBXBuildFile; productRef = F457C6A7276926E0005B4E19 /* AppImport */; };
F4714D082652A46B00A8E4D2 /* Root.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4714D072652A46B00A8E4D2 /* Root.swift */; };
F4714D0A2652A46B00A8E4D2 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4714D092652A46B00A8E4D2 /* ContentView.swift */; };
F4714D152652A4B700A8E4D2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F471BDBF264A5995000693BC /* Assets.xcassets */; };
F4714D162652A4C000A8E4D2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F471BDBF264A5995000693BC /* Assets.xcassets */; };
F4714D1A2652A7C600A8E4D2 /* Dependencies in Frameworks */ = {isa = PBXBuildFile; productRef = F4714D192652A7C600A8E4D2 /* Dependencies */; };
F471BDB7264A5993000693BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F471BDB6264A5993000693BC /* AppDelegate.swift */; };
F471BDBB264A5993000693BC /* RootController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F471BDBA264A5993000693BC /* RootController.swift */; };
F471BDC0264A5995000693BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F471BDBF264A5995000693BC /* Assets.xcassets */; };
F47CBAEA265001FF00A8A00F /* RootControllerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47CBAE9265001FF00A8A00F /* RootControllerExtension.swift */; };
F47CBB10265182DD00A8A00F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F47CBB0A265182DC00A8A00F /* Assets.xcassets */; };
F47CBB12265182DD00A8A00F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47CBB0D265182DC00A8A00F /* AppDelegate.swift */; };
F47CBB13265182DD00A8A00F /* RootController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47CBB0F265182DC00A8A00F /* RootController.swift */; };
F47CBB152651830600A8A00F /* Dependencies in Frameworks */ = {isa = PBXBuildFile; productRef = F47CBB142651830600A8A00F /* Dependencies */; };
F47CBB17265186CD00A8A00F /* RootControllerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47CBB16265186CD00A8A00F /* RootControllerExtension.swift */; };
F492461A280C0C6100750C30 /* Modules in Frameworks */ = {isa = PBXBuildFile; productRef = F4924619280C0C6100750C30 /* Modules */; };
F492461C280C0CAE00750C30 /* Modules in Frameworks */ = {isa = PBXBuildFile; productRef = F492461B280C0CAE00750C30 /* Modules */; };
F4DED98E280B4B5500F53F0B /* Modules in Frameworks */ = {isa = PBXBuildFile; productRef = F4DED98D280B4B5500F53F0B /* Modules */; };
F4E350E42651BC8800D2CA45 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F4E350E32651BC8800D2CA45 /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -53,7 +53,6 @@
F42F10C726524EC600D5B314 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F42F10C926524EC900D5B314 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F42F10CA265254A100D5B314 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F457C6A6276926D5005B4E19 /* AppImport */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = AppImport; sourceTree = "<group>"; };
F4714D052652A46B00A8E4D2 /* iOS SwiftUI Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS SwiftUI Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F4714D072652A46B00A8E4D2 /* Root.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Root.swift; sourceTree = "<group>"; };
F4714D092652A46B00A8E4D2 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
Expand All @@ -71,32 +70,33 @@
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 /* Entitlements.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Entitlements.entitlements; sourceTree = "<group>"; };
F4DED98B280B4AAD00F53F0B /* PermissionsKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = PermissionsKit; path = ..; sourceTree = "<group>"; };
F4DED98C280B4B3E00F53F0B /* Modules */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Modules; 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 */

/* Begin PBXFrameworksBuildPhase section */
F4714D022652A46B00A8E4D2 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F4714D1A2652A7C600A8E4D2 /* Dependencies in Frameworks */,
F492461A280C0C6100750C30 /* Modules in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F471BDB0264A5993000693BC /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F457C6A8276926E0005B4E19 /* AppImport in Frameworks */,
F4DED98E280B4B5500F53F0B /* Modules in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F47CBAF42651826100A8A00F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F47CBB152651830600A8A00F /* Dependencies in Frameworks */,
F492461C280C0CAE00750C30 /* Modules in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -208,8 +208,8 @@
F4B9AD11264920FC001A0426 = {
isa = PBXGroup;
children = (
F457C6A6276926D5005B4E19 /* AppImport */,
F4FD4D2B2651008300B53BD9 /* SPPermissions */,
F4DED98C280B4B3E00F53F0B /* Modules */,
F4DED98B280B4AAD00F53F0B /* PermissionsKit */,
F471BDB5264A5993000693BC /* iOS Example */,
F4714D062652A46B00A8E4D2 /* iOS SwiftUI Example */,
F47CBAF82651826100A8A00F /* tvOS Example */,
Expand All @@ -235,7 +235,7 @@
);
name = "iOS SwiftUI Example";
packageProductDependencies = (
F4714D192652A7C600A8E4D2 /* Dependencies */,
F4924619280C0C6100750C30 /* Modules */,
);
productName = "iOS SwiftUI Example";
productReference = F4714D052652A46B00A8E4D2 /* iOS SwiftUI Example.app */;
Expand All @@ -257,7 +257,7 @@
);
name = "iOS Example";
packageProductDependencies = (
F457C6A7276926E0005B4E19 /* AppImport */,
F4DED98D280B4B5500F53F0B /* Modules */,
);
productName = "iOS Example";
productReference = F471BDB3264A5993000693BC /* iOS Example.app */;
Expand All @@ -277,7 +277,7 @@
);
name = "tvOS Example";
packageProductDependencies = (
F47CBB142651830600A8A00F /* Dependencies */,
F492461B280C0CAE00750C30 /* Modules */,
);
productName = "tvOS Example";
productReference = F47CBAF72651826100A8A00F /* tvOS Example.app */;
Expand All @@ -303,7 +303,7 @@
};
};
};
buildConfigurationList = F4B9AD15264920FC001A0426 /* Build configuration list for PBXProject "SPPermissions" */;
buildConfigurationList = F4B9AD15264920FC001A0426 /* Build configuration list for PBXProject "PermissionsKit" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand Down Expand Up @@ -467,7 +467,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 = "$(SRCROOT)/iOS SwiftUI Example/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -476,7 +476,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios.swiftui;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.swiftui;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
Expand Down Expand Up @@ -537,15 +537,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 = "$(SRCROOT)/iOS SwiftUI Example/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
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.swiftui;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.swiftui;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -596,7 +596,7 @@
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 5KKK9SKF79;
DEVELOPMENT_TEAM = "";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -622,10 +622,10 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios2;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(SPPERMISSIONS_FLAGS)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(PERMISSIONKIT_FLAGS)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -672,7 +672,7 @@
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 5KKK9SKF79;
DEVELOPMENT_TEAM = "";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -691,7 +691,7 @@
);
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.ios2;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -765,7 +765,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.tvos;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.tvos;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
Expand Down Expand Up @@ -832,7 +832,7 @@
);
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.opensource.sppermissions.tvos;
PRODUCT_BUNDLE_IDENTIFIER = io.sparrowcode.opensource.permissionskit.tvos;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -942,7 +942,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F4B9AD15264920FC001A0426 /* Build configuration list for PBXProject "SPPermissions" */ = {
F4B9AD15264920FC001A0426 /* Build configuration list for PBXProject "PermissionsKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F4B9AD16264920FC001A0426 /* Debug */,
Expand All @@ -954,17 +954,17 @@
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
F457C6A7276926E0005B4E19 /* AppImport */ = {
F4924619280C0C6100750C30 /* Modules */ = {
isa = XCSwiftPackageProductDependency;
productName = AppImport;
productName = Modules;
};
F4714D192652A7C600A8E4D2 /* Dependencies */ = {
F492461B280C0CAE00750C30 /* Modules */ = {
isa = XCSwiftPackageProductDependency;
productName = Dependencies;
productName = Modules;
};
F47CBB142651830600A8A00F /* Dependencies */ = {
F4DED98D280B4B5500F53F0B /* Modules */ = {
isa = XCSwiftPackageProductDependency;
productName = Dependencies;
productName = Modules;
};
/* End XCSwiftPackageProductDependency section */
};
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": "df2ba76dd6a27dfe721a193bb3a7888e311693d1",
"version": "3.5.1"
"revision": "74690b7fcb54f060008878dfb1769eaac225d60b",
"version": "3.6.1"
}
}
]
Expand Down
Loading

0 comments on commit 304a8b8

Please sign in to comment.