diff --git a/.gitignore b/.gitignore index 32530bc..8d2ae17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +## macOS + +.DS_Store + ## Xcode ### Build generated diff --git a/CHANGELOG.md b/CHANGELOG.md index f97dd2f..9b07211 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +* Set `APPLICATION_EXTENSION_API_ONLY` build setting on built frameworks. + [@AliSoftware](https://github.com/AliSoftware) + [#98](https://github.com/AliSoftware/Reusable/pull/98) + [@nahung89](https://github.com/nahung89) + [#88](https://github.com/AliSoftware/Reusable/pull/88) + * Update tools used by the project (Xcode, CocoaPods, CI, Carthage). Also SPM builds are now tested by CI. [@AliSoftware](https://github.com/AliSoftware) diff --git a/Example/Podfile b/Example/Podfile index 7dd33c1..cec7d40 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -9,3 +9,11 @@ target 'ReusableDemo tvOS' do platform :tvos, '9.0' pod 'Reusable', :path => '../' end + +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES' + end + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 0c63fbf..c30308a 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -15,6 +15,6 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Reusable: 8f13830abd1a7a90c0177a0b82066365fdd59485 -PODFILE CHECKSUM: 2e4cfd412f90711e15fcfa281c33e3b31f1e90b8 +PODFILE CHECKSUM: 0bd0b2356bb3b5810dfd8bef84ec4a18a8f93156 COCOAPODS: 1.8.4 diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index 0c63fbf..c30308a 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -15,6 +15,6 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Reusable: 8f13830abd1a7a90c0177a0b82066365fdd59485 -PODFILE CHECKSUM: 2e4cfd412f90711e15fcfa281c33e3b31f1e90b8 +PODFILE CHECKSUM: 0bd0b2356bb3b5810dfd8bef84ec4a18a8f93156 COCOAPODS: 1.8.4 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index 9a24669..e946bb6 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -549,6 +549,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 080A03A9616CB8F003769F910C0F873B /* Reusable-tvOS.xcconfig */; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -580,6 +581,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7E0220E452D37669D260C22EC01BF6EC /* Reusable-iOS.xcconfig */; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -612,6 +614,7 @@ baseConfigurationReference = 7E73E647B0D7DFBB4B6B6A0ABFE16505 /* Pods-ReusableDemo tvOS.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -770,6 +773,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7E0220E452D37669D260C22EC01BF6EC /* Reusable-iOS.xcconfig */; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -803,6 +807,7 @@ baseConfigurationReference = 677F50DC2DE6906C3C2E7C534D6EAD75 /* Pods-ReusableDemo tvOS.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -837,6 +842,7 @@ baseConfigurationReference = 194544F6DB8473C9AC0B356557BF10F9 /* Pods-ReusableDemo iOS.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -869,6 +875,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 080A03A9616CB8F003769F910C0F873B /* Reusable-tvOS.xcconfig */; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -902,6 +909,7 @@ baseConfigurationReference = 5FF460DDAD2269541A3F2B425AD5A5C8 /* Pods-ReusableDemo iOS.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + APPLICATION_EXTENSION_API_ONLY = YES; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; diff --git a/Example/ReusableDemo iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/ReusableDemo iOS/Assets.xcassets/AppIcon.appiconset/Contents.json index 5a866b3..ca239ed 100644 --- a/Example/ReusableDemo iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Example/ReusableDemo iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -91,8 +91,9 @@ "scale" : "2x" }, { - "idiom" : "ios-marketing", "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Logo.png", "scale" : "1x" } ],