diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/project.pbxproj b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..40a9bcd --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/project.pbxproj @@ -0,0 +1,396 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + A2FFDDC72A39D21C003E24C4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FFDDC62A39D21C003E24C4 /* AppDelegate.m */; }; + A2FFDDCA2A39D21C003E24C4 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FFDDC92A39D21C003E24C4 /* SceneDelegate.m */; }; + A2FFDDCD2A39D21C003E24C4 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FFDDCC2A39D21C003E24C4 /* ViewController.m */; }; + A2FFDDD02A39D21C003E24C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A2FFDDCE2A39D21C003E24C4 /* Main.storyboard */; }; + A2FFDDD22A39D21D003E24C4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A2FFDDD12A39D21D003E24C4 /* Assets.xcassets */; }; + A2FFDDD52A39D21D003E24C4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A2FFDDD32A39D21D003E24C4 /* LaunchScreen.storyboard */; }; + A2FFDDD82A39D21D003E24C4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FFDDD72A39D21D003E24C4 /* main.m */; }; + A2FFDDE02A39D306003E24C4 /* QuickCaptureSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A2FFDDDF2A39D306003E24C4 /* QuickCaptureSDK.framework */; }; + A2FFDDE12A39D306003E24C4 /* QuickCaptureSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A2FFDDDF2A39D306003E24C4 /* QuickCaptureSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + A2FFDDE22A39D306003E24C4 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + A2FFDDE12A39D306003E24C4 /* QuickCaptureSDK.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + A2FFDDC22A39D21C003E24C4 /* TestObjcApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestObjcApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + A2FFDDC52A39D21C003E24C4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + A2FFDDC62A39D21C003E24C4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + A2FFDDC82A39D21C003E24C4 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; + A2FFDDC92A39D21C003E24C4 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; + A2FFDDCB2A39D21C003E24C4 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + A2FFDDCC2A39D21C003E24C4 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + A2FFDDCF2A39D21C003E24C4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + A2FFDDD12A39D21D003E24C4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + A2FFDDD42A39D21D003E24C4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + A2FFDDD62A39D21D003E24C4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A2FFDDD72A39D21D003E24C4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + A2FFDDDF2A39D306003E24C4 /* QuickCaptureSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = QuickCaptureSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + A2FFDDBF2A39D21C003E24C4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A2FFDDE02A39D306003E24C4 /* QuickCaptureSDK.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + A2FFDDB92A39D21C003E24C4 = { + isa = PBXGroup; + children = ( + A2FFDDC42A39D21C003E24C4 /* TestObjcApp */, + A2FFDDC32A39D21C003E24C4 /* Products */, + A2FFDDDE2A39D306003E24C4 /* Frameworks */, + ); + sourceTree = ""; + }; + A2FFDDC32A39D21C003E24C4 /* Products */ = { + isa = PBXGroup; + children = ( + A2FFDDC22A39D21C003E24C4 /* TestObjcApp.app */, + ); + name = Products; + sourceTree = ""; + }; + A2FFDDC42A39D21C003E24C4 /* TestObjcApp */ = { + isa = PBXGroup; + children = ( + A2FFDDC52A39D21C003E24C4 /* AppDelegate.h */, + A2FFDDC62A39D21C003E24C4 /* AppDelegate.m */, + A2FFDDC82A39D21C003E24C4 /* SceneDelegate.h */, + A2FFDDC92A39D21C003E24C4 /* SceneDelegate.m */, + A2FFDDCB2A39D21C003E24C4 /* ViewController.h */, + A2FFDDCC2A39D21C003E24C4 /* ViewController.m */, + A2FFDDCE2A39D21C003E24C4 /* Main.storyboard */, + A2FFDDD12A39D21D003E24C4 /* Assets.xcassets */, + A2FFDDD32A39D21D003E24C4 /* LaunchScreen.storyboard */, + A2FFDDD62A39D21D003E24C4 /* Info.plist */, + A2FFDDD72A39D21D003E24C4 /* main.m */, + ); + path = TestObjcApp; + sourceTree = ""; + }; + A2FFDDDE2A39D306003E24C4 /* Frameworks */ = { + isa = PBXGroup; + children = ( + A2FFDDDF2A39D306003E24C4 /* QuickCaptureSDK.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + A2FFDDC12A39D21C003E24C4 /* TestObjcApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = A2FFDDDB2A39D21D003E24C4 /* Build configuration list for PBXNativeTarget "TestObjcApp" */; + buildPhases = ( + A2FFDDBE2A39D21C003E24C4 /* Sources */, + A2FFDDBF2A39D21C003E24C4 /* Frameworks */, + A2FFDDC02A39D21C003E24C4 /* Resources */, + A2FFDDE22A39D306003E24C4 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TestObjcApp; + productName = TestObjcApp; + productReference = A2FFDDC22A39D21C003E24C4 /* TestObjcApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + A2FFDDBA2A39D21C003E24C4 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1420; + TargetAttributes = { + A2FFDDC12A39D21C003E24C4 = { + CreatedOnToolsVersion = 14.2; + }; + }; + }; + buildConfigurationList = A2FFDDBD2A39D21C003E24C4 /* Build configuration list for PBXProject "TestObjcApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A2FFDDB92A39D21C003E24C4; + productRefGroup = A2FFDDC32A39D21C003E24C4 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + A2FFDDC12A39D21C003E24C4 /* TestObjcApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + A2FFDDC02A39D21C003E24C4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A2FFDDD52A39D21D003E24C4 /* LaunchScreen.storyboard in Resources */, + A2FFDDD22A39D21D003E24C4 /* Assets.xcassets in Resources */, + A2FFDDD02A39D21C003E24C4 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A2FFDDBE2A39D21C003E24C4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A2FFDDCD2A39D21C003E24C4 /* ViewController.m in Sources */, + A2FFDDC72A39D21C003E24C4 /* AppDelegate.m in Sources */, + A2FFDDD82A39D21D003E24C4 /* main.m in Sources */, + A2FFDDCA2A39D21C003E24C4 /* SceneDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + A2FFDDCE2A39D21C003E24C4 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A2FFDDCF2A39D21C003E24C4 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + A2FFDDD32A39D21D003E24C4 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A2FFDDD42A39D21D003E24C4 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + A2FFDDD92A39D21D003E24C4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + A2FFDDDA2A39D21D003E24C4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + A2FFDDDC2A39D21D003E24C4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SF3Z2K36RZ; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = TestObjcApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.extrieve.QuickCaptureTestDemo.TestSwiftApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + A2FFDDDD2A39D21D003E24C4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SF3Z2K36RZ; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = TestObjcApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.extrieve.QuickCaptureTestDemo.TestSwiftApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A2FFDDBD2A39D21C003E24C4 /* Build configuration list for PBXProject "TestObjcApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A2FFDDD92A39D21D003E24C4 /* Debug */, + A2FFDDDA2A39D21D003E24C4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A2FFDDDB2A39D21D003E24C4 /* Build configuration list for PBXNativeTarget "TestObjcApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A2FFDDDC2A39D21D003E24C4 /* Debug */, + A2FFDDDD2A39D21D003E24C4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = A2FFDDBA2A39D21C003E24C4 /* Project object */; +} diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcshareddata/xcschemes/TestObjcApp.xcscheme b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcshareddata/xcschemes/TestObjcApp.xcscheme new file mode 100644 index 0000000..9ac9ed2 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcshareddata/xcschemes/TestObjcApp.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcuserdata/etplk_m2.xcuserdatad/xcschemes/xcschememanagement.plist b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcuserdata/etplk_m2.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..9924e58 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp.xcodeproj/xcuserdata/etplk_m2.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + TestObjcApp.xcscheme_^#shared#^_ + + orderHint + 3 + + + SuppressBuildableAutocreation + + A2FFDDC12A39D21C003E24C4 + + primary + + + + + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.h b/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.h new file mode 100644 index 0000000..0883d0f --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import + +@interface AppDelegate : UIResponder +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.m b/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.m new file mode 100644 index 0000000..ad7168b --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/AppDelegate.m @@ -0,0 +1,40 @@ +// +// AppDelegate.m +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + + +#pragma mark - UISceneSession lifecycle + + +- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role]; +} + + +- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. +} + + +@end diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AccentColor.colorset/Contents.json b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/Contents.json b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/LaunchScreen.storyboard b/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/Main.storyboard b/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/Main.storyboard new file mode 100644 index 0000000..228e264 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Base.lproj/Main.storyboard @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/Info.plist b/Objective-C_sample/TestObjcApp/TestObjcApp/Info.plist new file mode 100644 index 0000000..81ed29b --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.h b/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.h new file mode 100644 index 0000000..1134a57 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.h @@ -0,0 +1,15 @@ +// +// SceneDelegate.h +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import + +@interface SceneDelegate : UIResponder + +@property (strong, nonatomic) UIWindow * window; + +@end + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.m b/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.m new file mode 100644 index 0000000..6978370 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/SceneDelegate.m @@ -0,0 +1,57 @@ +// +// SceneDelegate.m +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import "SceneDelegate.h" + +@interface SceneDelegate () + +@end + +@implementation SceneDelegate + + +- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). +} + + +- (void)sceneDidDisconnect:(UIScene *)scene { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). +} + + +- (void)sceneDidBecomeActive:(UIScene *)scene { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. +} + + +- (void)sceneWillResignActive:(UIScene *)scene { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). +} + + +- (void)sceneWillEnterForeground:(UIScene *)scene { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. +} + + +- (void)sceneDidEnterBackground:(UIScene *)scene { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. +} + + +@end diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.h b/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.h new file mode 100644 index 0000000..a2fcce3 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.h @@ -0,0 +1,13 @@ +// +// ViewController.h +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import + +@interface ViewController : UIViewController + +@end + diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.m b/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.m new file mode 100644 index 0000000..2601e42 --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/ViewController.m @@ -0,0 +1,173 @@ +// +// ViewController.m +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +///Framework contains two Header file which is Necessary to import +/// QuickCaptureSDK-Swift.h and QuickCaptureFW.h +/// Inside the Framework Package you will find under the Header Folder +/// +/// import "/QuickCaptureSDK.framework/Headers/QuickCaptureSDK-Swift.h" +/// import "/QuickCaptureSDK.framework/Headers/QuickCaptureFW.h" + + +#import "ViewController.h" + + +#ifdef RELEASE +/// Necessary For CameraHelper Support +#import "../../Build/Products/Release-iphoneos/QuickCaptureSDK.framework/Headers/QuickCaptureSDK-Swift.h" +/// Necessary For ImgHelper Support +#import "../../Build/Products/Release-iphoneos/QuickCaptureSDK.framework/Headers/QuickCaptureFW.h" +#else +/// Necessary For CameraHelper Support +#import "../../Build/Products/Debug-iphoneos/QuickCaptureSDK.framework/Headers/QuickCaptureSDK-Swift.h" +/// Necessary For ImgHelper Support +#import "../../Build/Products/Debug-iphoneos/QuickCaptureSDK.framework/Headers/QuickCaptureFW.h" + +#endif + + +typedef void (^CaptureCallbackBlock)(NSArray * _Nonnull imageArray); + +@interface ViewController () +@property (nonatomic, copy, nullable) CaptureCallbackBlock captureCallback; +@property __block NSArray *CapturedImages; +@end + +@implementation ViewController + + + + +- (IBAction)btnLaunchCameraTap:(id)sender { + + NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); + + NSString *directory = [[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] firstObject] absoluteString]; + + NSURL *url = [NSURL URLWithString:directory]; + if (!url) { + return; + } + + + ///Some Configurations before starting the Camera Capture + ///The camera Capture session will behave according to these settings + NSURL *workingDirUrl = [url URLByAppendingPathComponent:@"QuickCaptureDemoWorking1"]; + CaptureSupport.OutputPath = [workingDirUrl absoluteString]; + CaptureSupport.CaptureSound = true; + CaptureSupport.ColorMode = ColorModesRGB; + CaptureSupport.CameraToggle = 2; + CaptureSupport.EnableFlash = false; + + + NSString *workingDir = [paths firstObject]; + + + ///This callback will be Required for CameraHelper.StartCapture as an argument. + ///This will be called after the Capture Session is closed + self.captureCallback = ^(NSArray * _Nonnull imageArray) { + if (imageArray.count == 0) { + NSLog(@"Error: no images found"); + } + else{ + + ///imageArray is the Argument where you get the Array od Strings + ///these strings are the path of captured image saved in WorkingDirectory temporarily + ///Note: Don't forget to delete image files after completion of task + self->_CapturedImages = imageArray; + } + }; + + ///Instanciating the CameraHelper Class to use its properties + CameraHelper *cameraHelperObj = [[CameraHelper alloc] init]; + + + ///Start Capturing the Images from Camera using Framework + ///It will save all the Captured images + [cameraHelperObj StartCapture:self :workingDir : self.captureCallback]; +} + + + +///This button tap Action is providing the Usage of ImageHelper Class Properties +- (IBAction)btnActionTap:(id)sender{ + + + NSLog(@"%lu", (unsigned long)self->_CapturedImages.count); + BOOL isExist = [NSFileManager.defaultManager fileExistsAtPath:self->_CapturedImages[0]]; + + + NSURL *workingDirURL = [NSURL URLWithString:CaptureSupport.OutputPath]; + if (!workingDirURL) { + return; + } + + NSFileManager *manager = [NSFileManager defaultManager]; + BOOL isDirectory = NO; + if (![manager fileExistsAtPath:workingDirURL.path isDirectory:&isDirectory] || !isDirectory) { + NSError *error = nil; + [manager createDirectoryAtPath:workingDirURL.path withIntermediateDirectories:YES attributes:nil error:&error]; + if (error) { + NSLog(@"Unable to create output directory"); + } + } + + NSURL *outputTiffURL = [workingDirURL URLByAppendingPathComponent:@"OutputPDF.JPEG"]; + NSError * _Nullable err; + + + ///Instanciating the ImgHelper class using GetInstance Method + ImgHelper *img = [ImgHelper GetInstance]; + + ///Setting the DPI as 100 using SetDpi method which takes enum value as an argument + [img SetDpi:DPI_100]; + + ///Setting the PageLayout as A4 using setPageLayout method which takes enum value as an argument + [img setPageLayout:LayoutTypeA4]; + + + ///CompressAndGetThumbnail : This method Returns an UIImage object which is THumbnail of the image path passed as an argument + ///It saves the compressed image on outputURI path + ///Last argument "err" is for any excceptions occurs + ///Note: Here we are providing the AbsoluteString as it take the FullPath to save the image + UIImage* thumb = [img CompressAndGetThumbnail:self->_CapturedImages[0] outputURI:outputTiffURL.absoluteString err:&err]; + NSLog(@"%@",err.description); + NSLog(@"%@",err.localizedDescription); + + ///Getting the ImageQuality + int quality = [img getJPEGQuality]; + + ///createPdfFileFromJpegArray : This method will create a PDF out of Images provided by the NSArray of NSString saves the pdf file in outputTiffURL provided as String + ///First argument is working directory it should be readable and writeable directory where this function saves some temporary data then removes after completion + ///Return Integer value as 0 means TRUE or success and vice versa + int ret = [img createPdfFileFromJpegArray:workingDirURL.path :self->_CapturedImages :outputTiffURL.path :DPI_200 :DPI_200 :quality]; + + NSLog(@"%d",ret); + + + + +} + + + + + +- (void)viewDidLoad { + [super viewDidLoad]; + NSString *Directory = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] firstObject].absoluteString; + NSURL *url = [NSURL URLWithString:Directory]; + if (!url) { + return; + } + NSURL *workingDirUrl = [url URLByAppendingPathComponent:@"QuickCaptureDemoWorking1"]; + CaptureSupport.OutputPath = workingDirUrl.absoluteString; + +} + + +@end diff --git a/Objective-C_sample/TestObjcApp/TestObjcApp/main.m b/Objective-C_sample/TestObjcApp/TestObjcApp/main.m new file mode 100644 index 0000000..400476e --- /dev/null +++ b/Objective-C_sample/TestObjcApp/TestObjcApp/main.m @@ -0,0 +1,18 @@ +// +// main.m +// TestObjcApp +// +// Created by Extrieve Technologies Pvt Ltd on 14/06/23. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + NSString * appDelegateClassName; + @autoreleasepool { + // Setup code that might create autoreleased objects goes here. + appDelegateClassName = NSStringFromClass([AppDelegate class]); + } + return UIApplicationMain(argc, argv, nil, appDelegateClassName); +}