Skip to content

Commit

Permalink
Fixes spm compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Mueller <mmlr@gmx.net>
  • Loading branch information
mmllr committed Oct 28, 2020
1 parent 8e60f2d commit f2ccb12
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Configurations/Base/Common.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES

// Warns when a quoted include is used instead of a framework style include in a framework header.
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO

// Warn about ranged-based for loops.
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
Expand Down
2 changes: 2 additions & 0 deletions Configurations/Base/Targets/StaticLibrary.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ SKIP_INSTALL = YES
// that have not been built with this setting enabled.
APPLICATION_EXTENSION_API_ONLY = YES

// Warns when a quoted include is used instead of a framework style include in a framework header.
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
4 changes: 0 additions & 4 deletions InAppSettingsKit/Controllers/IASKAppSettingsViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>

#ifdef SWIFT_PACKAGE
#import "IASKViewController.h"
#else
#import <InAppSettingsKit/IASKViewController.h>
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
21 changes: 10 additions & 11 deletions InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@


#import "IASKAppSettingsViewController.h"
#import "IASKSwitch.h"
#import "IASKDatePicker.h"
#import "IASKTextView.h"
#import "IASKSettingsReader.h"
#import "IASKMultipleValueSelection.h"
#import "IASKSettingsStoreUserDefaults.h"
#import "IASKSettingsStoreInMemory.h"
#import "IASKPSSliderSpecifierViewCell.h"
#import "IASKPSTextFieldSpecifierViewCell.h"
#import "IASKSwitch.h"
#import "IASKSlider.h"
#import "IASKSpecifier.h"
#import "IASKSpecifierValuesViewController.h"
#import "IASKSlider.h"
#import "IASKEmbeddedDatePickerViewCell.h"
#import "IASKPSTextFieldSpecifierViewCell.h"
#import "IASKTextField.h"
#import "IASKTextViewCell.h"
#import "IASKMultipleValueSelection.h"
#import "IASKDatePicker.h"
#import "IASKDatePickerViewCell.h"
#import "IASKEmbeddedDatePickerViewCell.h"
#import "IASKTextView.h"
#import "IASKPSSliderSpecifierViewCell.h"
#import "IASKSpecifierValuesViewController.h"
#import "IASKSettingsStoreInMemory.h"

#if !__has_feature(objc_arc)
#error "IASK needs ARC"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@

#import <UIKit/UIKit.h>

#ifdef SWIFT_PACKAGE
#import "IASKViewController.h"
#else
#import <InAppSettingsKit/IASKViewController.h>
#endif

@class IASKSpecifier;

Expand Down
4 changes: 0 additions & 4 deletions InAppSettingsKit/Models/IASKSettingsStoreFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@

#import <Foundation/Foundation.h>

#ifdef SWIFT_PACKAGE
#import "IASKSettingsStore.h"
#else
#import <InAppSettingsKit/IASKSettingsStore.h>
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 0 additions & 4 deletions InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@

#import <Foundation/Foundation.h>

#ifdef SWIFT_PACKAGE
#import "IASKSettingsStore.h"
#else
#import <InAppSettingsKit/IASKSettingsStore.h>
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion InAppSettingsKitSampleApp/CustomSubviewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//

#import "CustomSubviewController.h"
#import <InAppSettingsKit/InAppSettingsKit.h>
#import "InAppSettingsKit/IASKSpecifier.h"

@implementation CustomSubviewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
// Use this file to import your target's public headers that you would like to expose to Swift.
//

#import <InAppSettingsKit/InAppSettingsKit.h>
//#import <InAppSettingsKit/InAppSettingsKit.h>
#import "CustomViewCell.h"
#import "InAppSettingsKit/IASKAppSettingsViewController.h"
#import "InAppSettingsKit/IASKSpecifier.h"
#import "InAppSettingsKit/IASKTextField.h"
#import "InAppSettingsKit/IASKSettingsReader.h"
#import "InAppSettingsKit/IASKViewController.h"
#import "InAppSettingsKit/IASKSettingsStore.h"

0 comments on commit f2ccb12

Please sign in to comment.