From dbeb6942408cc334bedf213b627a3bcb65cf73ea Mon Sep 17 00:00:00 2001 From: Huzaif Mushtaq Mir Date: Mon, 6 Jul 2026 12:07:25 +0530 Subject: [PATCH 1/4] chore: add ios example --- examples/README.md | 16 + .../sample/sample.xcodeproj/project.pbxproj | 394 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/xcschemes/sample.xcscheme | 78 ++++ examples/sample/sample/AppDelegate.h | 14 + examples/sample/sample/AppDelegate.m | 40 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 +++++ .../sample/Assets.xcassets/Contents.json | 6 + .../sample/Base.lproj/LaunchScreen.storyboard | 32 ++ .../sample/sample/Base.lproj/Main.storyboard | 64 +++ examples/sample/sample/Info.plist | 66 +++ examples/sample/sample/SceneDelegate.h | 15 + examples/sample/sample/SceneDelegate.m | 57 +++ examples/sample/sample/ViewController.h | 14 + examples/sample/sample/ViewController.m | 74 ++++ examples/sample/sample/main.m | 18 + 18 files changed, 1012 insertions(+) create mode 100644 examples/README.md create mode 100644 examples/sample/sample.xcodeproj/project.pbxproj create mode 100644 examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme create mode 100644 examples/sample/sample/AppDelegate.h create mode 100644 examples/sample/sample/AppDelegate.m create mode 100644 examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 examples/sample/sample/Assets.xcassets/Contents.json create mode 100644 examples/sample/sample/Base.lproj/LaunchScreen.storyboard create mode 100644 examples/sample/sample/Base.lproj/Main.storyboard create mode 100644 examples/sample/sample/Info.plist create mode 100644 examples/sample/sample/SceneDelegate.h create mode 100644 examples/sample/sample/SceneDelegate.m create mode 100644 examples/sample/sample/ViewController.h create mode 100644 examples/sample/sample/ViewController.m create mode 100644 examples/sample/sample/main.m diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..89bdf87 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,16 @@ +# LexFloatClient iOS Example + +## Setup + +This project links against `LexFloatClient.xcframework`, which is not bundled here. +Build it from the LexFloatClient native source and place it at: + +``` +examples/sample/LexFloatClient.xcframework +``` + +## Run + +Open `examples/sample/sample.xcodeproj` in Xcode and run the `sample` target. + +Set your product ID and float server URL in `ViewController.m` before running. diff --git a/examples/sample/sample.xcodeproj/project.pbxproj b/examples/sample/sample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3ab96a3 --- /dev/null +++ b/examples/sample/sample.xcodeproj/project.pbxproj @@ -0,0 +1,394 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 8406D84C268C874F00307DA0 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8406D84B268C874F00307DA0 /* AppDelegate.m */; }; + 8406D84F268C874F00307DA0 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8406D84E268C874F00307DA0 /* SceneDelegate.m */; }; + 8406D852268C874F00307DA0 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8406D851268C874F00307DA0 /* ViewController.m */; }; + 8406D855268C874F00307DA0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8406D853268C874F00307DA0 /* Main.storyboard */; }; + 8406D857268C875000307DA0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8406D856268C875000307DA0 /* Assets.xcassets */; }; + 8406D85A268C875000307DA0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8406D858268C875000307DA0 /* LaunchScreen.storyboard */; }; + 8406D85D268C875000307DA0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8406D85C268C875000307DA0 /* main.m */; }; + 842387802696D92600A1F0A5 /* LexFloatClient.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8423877F2696D92600A1F0A5 /* LexFloatClient.xcframework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 842F070D2693023D007F6F0D /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 8406D847268C874F00307DA0 /* sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = sample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8406D84A268C874F00307DA0 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 8406D84B268C874F00307DA0 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 8406D84D268C874F00307DA0 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; + 8406D84E268C874F00307DA0 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; + 8406D850268C874F00307DA0 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 8406D851268C874F00307DA0 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 8406D854268C874F00307DA0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 8406D856268C875000307DA0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8406D859268C875000307DA0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 8406D85B268C875000307DA0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8406D85C268C875000307DA0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 8423877F2696D92600A1F0A5 /* LexFloatClient.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = LexFloatClient.xcframework; path = sample/LexFloatClient.xcframework; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8406D844268C874F00307DA0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 842387802696D92600A1F0A5 /* LexFloatClient.xcframework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8406D83E268C874F00307DA0 = { + isa = PBXGroup; + children = ( + 8406D849268C874F00307DA0 /* sample */, + 8406D848268C874F00307DA0 /* Products */, + 8406D865268D9A3E00307DA0 /* Frameworks */, + ); + sourceTree = ""; + }; + 8406D848268C874F00307DA0 /* Products */ = { + isa = PBXGroup; + children = ( + 8406D847268C874F00307DA0 /* sample.app */, + ); + name = Products; + sourceTree = ""; + }; + 8406D849268C874F00307DA0 /* sample */ = { + isa = PBXGroup; + children = ( + 8406D84A268C874F00307DA0 /* AppDelegate.h */, + 8406D84B268C874F00307DA0 /* AppDelegate.m */, + 8406D84D268C874F00307DA0 /* SceneDelegate.h */, + 8406D84E268C874F00307DA0 /* SceneDelegate.m */, + 8406D850268C874F00307DA0 /* ViewController.h */, + 8406D851268C874F00307DA0 /* ViewController.m */, + 8406D853268C874F00307DA0 /* Main.storyboard */, + 8406D856268C875000307DA0 /* Assets.xcassets */, + 8406D858268C875000307DA0 /* LaunchScreen.storyboard */, + 8406D85B268C875000307DA0 /* Info.plist */, + 8406D85C268C875000307DA0 /* main.m */, + ); + path = sample; + sourceTree = ""; + }; + 8406D865268D9A3E00307DA0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 8423877F2696D92600A1F0A5 /* LexFloatClient.xcframework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8406D846268C874F00307DA0 /* sample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8406D860268C875000307DA0 /* Build configuration list for PBXNativeTarget "sample" */; + buildPhases = ( + 8406D843268C874F00307DA0 /* Sources */, + 8406D844268C874F00307DA0 /* Frameworks */, + 8406D845268C874F00307DA0 /* Resources */, + 842F070D2693023D007F6F0D /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = sample; + productName = sample; + productReference = 8406D847268C874F00307DA0 /* sample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8406D83F268C874F00307DA0 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1250; + TargetAttributes = { + 8406D846268C874F00307DA0 = { + CreatedOnToolsVersion = 12.5.1; + }; + }; + }; + buildConfigurationList = 8406D842268C874F00307DA0 /* Build configuration list for PBXProject "sample" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8406D83E268C874F00307DA0; + productRefGroup = 8406D848268C874F00307DA0 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8406D846268C874F00307DA0 /* sample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8406D845268C874F00307DA0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8406D85A268C875000307DA0 /* LaunchScreen.storyboard in Resources */, + 8406D857268C875000307DA0 /* Assets.xcassets in Resources */, + 8406D855268C874F00307DA0 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8406D843268C874F00307DA0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8406D852268C874F00307DA0 /* ViewController.m in Sources */, + 8406D84C268C874F00307DA0 /* AppDelegate.m in Sources */, + 8406D85D268C875000307DA0 /* main.m in Sources */, + 8406D84F268C874F00307DA0 /* SceneDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 8406D853268C874F00307DA0 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8406D854268C874F00307DA0 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 8406D858268C875000307DA0 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8406D859268C875000307DA0 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8406D85E268C875000307DA0 /* 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++14"; + CLANG_CXX_LIBRARY = "libc++"; + 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 = 14.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 8406D85F268C875000307DA0 /* 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++14"; + CLANG_CXX_LIBRARY = "libc++"; + 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 = 14.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8406D861268C875000307DA0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 3A97DBTQUK; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/sample", + ); + INFOPLIST_FILE = sample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ""; + OTHER_LDFLAGS = "-lc++"; + PRODUCT_BUNDLE_IDENTIFIER = com.cryptlex.sample.sample; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = NO; + VALIDATE_WORKSPACE = NO; + }; + name = Debug; + }; + 8406D862268C875000307DA0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 3A97DBTQUK; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/sample", + ); + INFOPLIST_FILE = sample/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + LIBRARY_SEARCH_PATHS = ""; + OTHER_LDFLAGS = "-lc++"; + PRODUCT_BUNDLE_IDENTIFIER = com.cryptlex.sample.sample; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_WORKSPACE = NO; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8406D842268C874F00307DA0 /* Build configuration list for PBXProject "sample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8406D85E268C875000307DA0 /* Debug */, + 8406D85F268C875000307DA0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8406D860268C875000307DA0 /* Build configuration list for PBXNativeTarget "sample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8406D861268C875000307DA0 /* Debug */, + 8406D862268C875000307DA0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8406D83F268C874F00307DA0 /* Project object */; +} diff --git a/examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme b/examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme new file mode 100644 index 0000000..f002caf --- /dev/null +++ b/examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/sample/sample/AppDelegate.h b/examples/sample/sample/AppDelegate.h new file mode 100644 index 0000000..fdc4769 --- /dev/null +++ b/examples/sample/sample/AppDelegate.h @@ -0,0 +1,14 @@ +// +// AppDelegate.h +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#import + +@interface AppDelegate : UIResponder + + +@end + diff --git a/examples/sample/sample/AppDelegate.m b/examples/sample/sample/AppDelegate.m new file mode 100644 index 0000000..379d19c --- /dev/null +++ b/examples/sample/sample/AppDelegate.m @@ -0,0 +1,40 @@ +// +// AppDelegate.m +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#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/examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json b/examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/examples/sample/sample/Assets.xcassets/Contents.json b/examples/sample/sample/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/examples/sample/sample/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/examples/sample/sample/Base.lproj/LaunchScreen.storyboard b/examples/sample/sample/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..1cfdc7e --- /dev/null +++ b/examples/sample/sample/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/sample/sample/Base.lproj/Main.storyboard b/examples/sample/sample/Base.lproj/Main.storyboard new file mode 100644 index 0000000..8f62c9f --- /dev/null +++ b/examples/sample/sample/Base.lproj/Main.storyboard @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/sample/sample/Info.plist b/examples/sample/sample/Info.plist new file mode 100644 index 0000000..72bf2c4 --- /dev/null +++ b/examples/sample/sample/Info.plist @@ -0,0 +1,66 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/examples/sample/sample/SceneDelegate.h b/examples/sample/sample/SceneDelegate.h new file mode 100644 index 0000000..81e806f --- /dev/null +++ b/examples/sample/sample/SceneDelegate.h @@ -0,0 +1,15 @@ +// +// SceneDelegate.h +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#import + +@interface SceneDelegate : UIResponder + +@property (strong, nonatomic) UIWindow * window; + +@end + diff --git a/examples/sample/sample/SceneDelegate.m b/examples/sample/sample/SceneDelegate.m new file mode 100644 index 0000000..3db3656 --- /dev/null +++ b/examples/sample/sample/SceneDelegate.m @@ -0,0 +1,57 @@ +// +// SceneDelegate.m +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#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/examples/sample/sample/ViewController.h b/examples/sample/sample/ViewController.h new file mode 100644 index 0000000..783d3e4 --- /dev/null +++ b/examples/sample/sample/ViewController.h @@ -0,0 +1,14 @@ +// +// ViewController.h +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/examples/sample/sample/ViewController.m b/examples/sample/sample/ViewController.m new file mode 100644 index 0000000..54f72d8 --- /dev/null +++ b/examples/sample/sample/ViewController.m @@ -0,0 +1,74 @@ +// +// ViewController.m +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#import "ViewController.h" +#import +@interface ViewController () +@property (weak, nonatomic) IBOutlet UIButton *activateButton; +@property (weak, nonatomic) IBOutlet UIButton *dropLicenseButton; +@property (weak, nonatomic) IBOutlet UILabel *licenseStatusLabel; + +@end + +@implementation ViewController + +void LF_CC licenceRenewCallback(uint32_t status) +{ + switch (status) + { + case LF_OK: + printf("The license lease has renewed successfully.\n"); + break; + case LF_E_LICENSE_NOT_FOUND: + printf("The license expired before it could be renewed.\n"); + break; + case LF_E_LICENSE_EXPIRED_INET: + printf("The license expired due to network connection failure.\n"); + break; + default: + printf("The license renew failed due to other reason. Error code: %d\n", status); + break; + } +} + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. + int status; + status = SetHostProductId("PASTE_PRODUCT_ID"); + if(status != LF_OK) + { + self.licenseStatusLabel.text = [NSString stringWithFormat:@"%d",status]; + return; + } + + status = SetHostUrl("http://localhost:8090"); + if(status != LF_OK) + { + self.licenseStatusLabel.text = [NSString stringWithFormat:@"%d",status]; + return; + } + +} +- (IBAction)onActivateClick:(id)sender { + int status; + status = SetFloatingLicenseCallback(licenceRenewCallback); + if(status != LF_OK) + { + self.licenseStatusLabel.text = [NSString stringWithFormat:@"%d",status]; + return; + } + status = RequestFloatingLicense(); + self.licenseStatusLabel.text = [NSString stringWithFormat:@"%d",status]; +} +- (IBAction)onDropLicenseClick:(id)sender { + int status = DropFloatingLicense(); + self.licenseStatusLabel.text = [NSString stringWithFormat:@"%d",status]; +} + + +@end diff --git a/examples/sample/sample/main.m b/examples/sample/sample/main.m new file mode 100644 index 0000000..f1b4d52 --- /dev/null +++ b/examples/sample/sample/main.m @@ -0,0 +1,18 @@ +// +// main.m +// sample +// +// Created by Adnan Kamili on 30/06/21. +// + +#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); +} From c887bc14d8168b0e663791be8cc07a85c13084b5 Mon Sep 17 00:00:00 2001 From: Huzaif Mushtaq Mir Date: Wed, 8 Jul 2026 15:57:24 +0530 Subject: [PATCH 2/4] chore: copilot issues --- examples/sample/sample.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sample/sample.xcodeproj/project.pbxproj b/examples/sample/sample.xcodeproj/project.pbxproj index 3ab96a3..b41ad9b 100644 --- a/examples/sample/sample.xcodeproj/project.pbxproj +++ b/examples/sample/sample.xcodeproj/project.pbxproj @@ -320,7 +320,7 @@ BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 3A97DBTQUK; + DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/sample", @@ -348,7 +348,7 @@ BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 3A97DBTQUK; + DEVELOPMENT_TEAM = ""; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(PROJECT_DIR)/sample", From ffd50dd08608215a80005ab32b93a79891780348 Mon Sep 17 00:00:00 2001 From: Huzaif Mushtaq Mir Date: Wed, 8 Jul 2026 15:57:39 +0530 Subject: [PATCH 3/4] chore: add readme --- examples/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/examples/README.md b/examples/README.md index 89bdf87..00a3156 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,5 +1,8 @@ # LexFloatClient iOS Example +Example demonstrating floating license acquisition with the LexFloatClient iOS +library. + ## Setup This project links against `LexFloatClient.xcframework`, which is not bundled here. @@ -9,8 +12,16 @@ Build it from the LexFloatClient native source and place it at: examples/sample/LexFloatClient.xcframework ``` -## Run +## Running + +Open `examples/sample/sample.xcodeproj` in Xcode, select your signing team, and +run the `sample` target. + +Set your product ID and float server URL in +[ViewController.m](sample/sample/ViewController.m) before running. + +## Documentation -Open `examples/sample/sample.xcodeproj` in Xcode and run the `sample` target. +Refer to the following for documentation: -Set your product ID and float server URL in `ViewController.m` before running. +https://docs.cryptlex.com/floating-licenses/on-premise-floating-licenses/using-lexfloatclient From c2d2276d0b5d11cdb71eafd7d136d8a37dc9b42c Mon Sep 17 00:00:00 2001 From: Huzaif Mushtaq Mir Date: Wed, 8 Jul 2026 16:48:28 +0530 Subject: [PATCH 4/4] chore: rename examples to ios --- {examples => ios}/README.md | 0 {examples => ios}/sample/sample.xcodeproj/project.pbxproj | 0 .../sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata | 0 .../project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | 0 .../sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme | 0 {examples => ios}/sample/sample/AppDelegate.h | 0 {examples => ios}/sample/sample/AppDelegate.m | 0 .../sample/Assets.xcassets/AccentColor.colorset/Contents.json | 0 .../sample/Assets.xcassets/AppIcon.appiconset/Contents.json | 0 {examples => ios}/sample/sample/Assets.xcassets/Contents.json | 0 .../sample/sample/Base.lproj/LaunchScreen.storyboard | 0 {examples => ios}/sample/sample/Base.lproj/Main.storyboard | 0 {examples => ios}/sample/sample/Info.plist | 0 {examples => ios}/sample/sample/SceneDelegate.h | 0 {examples => ios}/sample/sample/SceneDelegate.m | 0 {examples => ios}/sample/sample/ViewController.h | 0 {examples => ios}/sample/sample/ViewController.m | 0 {examples => ios}/sample/sample/main.m | 0 18 files changed, 0 insertions(+), 0 deletions(-) rename {examples => ios}/README.md (100%) rename {examples => ios}/sample/sample.xcodeproj/project.pbxproj (100%) rename {examples => ios}/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename {examples => ios}/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename {examples => ios}/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme (100%) rename {examples => ios}/sample/sample/AppDelegate.h (100%) rename {examples => ios}/sample/sample/AppDelegate.m (100%) rename {examples => ios}/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename {examples => ios}/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {examples => ios}/sample/sample/Assets.xcassets/Contents.json (100%) rename {examples => ios}/sample/sample/Base.lproj/LaunchScreen.storyboard (100%) rename {examples => ios}/sample/sample/Base.lproj/Main.storyboard (100%) rename {examples => ios}/sample/sample/Info.plist (100%) rename {examples => ios}/sample/sample/SceneDelegate.h (100%) rename {examples => ios}/sample/sample/SceneDelegate.m (100%) rename {examples => ios}/sample/sample/ViewController.h (100%) rename {examples => ios}/sample/sample/ViewController.m (100%) rename {examples => ios}/sample/sample/main.m (100%) diff --git a/examples/README.md b/ios/README.md similarity index 100% rename from examples/README.md rename to ios/README.md diff --git a/examples/sample/sample.xcodeproj/project.pbxproj b/ios/sample/sample.xcodeproj/project.pbxproj similarity index 100% rename from examples/sample/sample.xcodeproj/project.pbxproj rename to ios/sample/sample.xcodeproj/project.pbxproj diff --git a/examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from examples/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to ios/sample/sample.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from examples/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to ios/sample/sample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme b/ios/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme similarity index 100% rename from examples/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme rename to ios/sample/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme diff --git a/examples/sample/sample/AppDelegate.h b/ios/sample/sample/AppDelegate.h similarity index 100% rename from examples/sample/sample/AppDelegate.h rename to ios/sample/sample/AppDelegate.h diff --git a/examples/sample/sample/AppDelegate.m b/ios/sample/sample/AppDelegate.m similarity index 100% rename from examples/sample/sample/AppDelegate.m rename to ios/sample/sample/AppDelegate.m diff --git a/examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json b/ios/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from examples/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json rename to ios/sample/sample/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from examples/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to ios/sample/sample/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/examples/sample/sample/Assets.xcassets/Contents.json b/ios/sample/sample/Assets.xcassets/Contents.json similarity index 100% rename from examples/sample/sample/Assets.xcassets/Contents.json rename to ios/sample/sample/Assets.xcassets/Contents.json diff --git a/examples/sample/sample/Base.lproj/LaunchScreen.storyboard b/ios/sample/sample/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from examples/sample/sample/Base.lproj/LaunchScreen.storyboard rename to ios/sample/sample/Base.lproj/LaunchScreen.storyboard diff --git a/examples/sample/sample/Base.lproj/Main.storyboard b/ios/sample/sample/Base.lproj/Main.storyboard similarity index 100% rename from examples/sample/sample/Base.lproj/Main.storyboard rename to ios/sample/sample/Base.lproj/Main.storyboard diff --git a/examples/sample/sample/Info.plist b/ios/sample/sample/Info.plist similarity index 100% rename from examples/sample/sample/Info.plist rename to ios/sample/sample/Info.plist diff --git a/examples/sample/sample/SceneDelegate.h b/ios/sample/sample/SceneDelegate.h similarity index 100% rename from examples/sample/sample/SceneDelegate.h rename to ios/sample/sample/SceneDelegate.h diff --git a/examples/sample/sample/SceneDelegate.m b/ios/sample/sample/SceneDelegate.m similarity index 100% rename from examples/sample/sample/SceneDelegate.m rename to ios/sample/sample/SceneDelegate.m diff --git a/examples/sample/sample/ViewController.h b/ios/sample/sample/ViewController.h similarity index 100% rename from examples/sample/sample/ViewController.h rename to ios/sample/sample/ViewController.h diff --git a/examples/sample/sample/ViewController.m b/ios/sample/sample/ViewController.m similarity index 100% rename from examples/sample/sample/ViewController.m rename to ios/sample/sample/ViewController.m diff --git a/examples/sample/sample/main.m b/ios/sample/sample/main.m similarity index 100% rename from examples/sample/sample/main.m rename to ios/sample/sample/main.m