diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d374065 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +.DS_Store + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Gcc Patch +/*.gcno \ No newline at end of file diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.pbxproj b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c233afb --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.pbxproj @@ -0,0 +1,688 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 0A2F0CC62630125D00CEC71B /* InventoryDemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CC52630125D00CEC71B /* InventoryDemoApp.swift */; }; + 0A2F0CC82630125D00CEC71B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CC72630125D00CEC71B /* ContentView.swift */; }; + 0A2F0CCA2630125F00CEC71B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0A2F0CC92630125F00CEC71B /* Assets.xcassets */; }; + 0A2F0CCD2630125F00CEC71B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0A2F0CCC2630125F00CEC71B /* Preview Assets.xcassets */; }; + 0A2F0CD82630126000CEC71B /* InventoryDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CD72630126000CEC71B /* InventoryDemoTests.swift */; }; + 0A2F0CE32630126000CEC71B /* InventoryDemoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CE22630126000CEC71B /* InventoryDemoUITests.swift */; }; + 0A2F0CF42630138300CEC71B /* RealmSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 0A2F0CF32630138300CEC71B /* RealmSwift */; }; + 0A2F0CF62630138300CEC71B /* Realm in Frameworks */ = {isa = PBXBuildFile; productRef = 0A2F0CF52630138300CEC71B /* Realm */; }; + 0A2F0CF826301B7C00CEC71B /* InventoryItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CF726301B7C00CEC71B /* InventoryItem.swift */; }; + 0A2F0CFA26301C2700CEC71B /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CF926301C2700CEC71B /* LoginView.swift */; }; + 0A2F0CFD26301CC900CEC71B /* InputField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CFC26301CC900CEC71B /* InputField.swift */; }; + 0A2F0CFF26301CEE00CEC71B /* CaptionLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0CFE26301CEE00CEC71B /* CaptionLabel.swift */; }; + 0A2F0D0126301DB400CEC71B /* CallToActionButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D0026301DB400CEC71B /* CallToActionButton.swift */; }; + 0A2F0D0326301E3F00CEC71B /* CheckBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D0226301E3F00CEC71B /* CheckBox.swift */; }; + 0A2F0D05263022EE00CEC71B /* InventoryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D04263022EE00CEC71B /* InventoryView.swift */; }; + 0A2F0D072630261600CEC71B /* ItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D062630261600CEC71B /* ItemView.swift */; }; + 0A2F0D092630292600CEC71B /* CountStepper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D082630292600CEC71B /* CountStepper.swift */; }; + 0A2F0D0B263041D200CEC71B /* PriceInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D0A263041D200CEC71B /* PriceInput.swift */; }; + 0A2F0D0D2630661900CEC71B /* AddItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F0D0C2630661900CEC71B /* AddItemView.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 0A2F0CD42630126000CEC71B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0A2F0CBA2630125D00CEC71B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0A2F0CC12630125D00CEC71B; + remoteInfo = InventoryDemo; + }; + 0A2F0CDF2630126000CEC71B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0A2F0CBA2630125D00CEC71B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0A2F0CC12630125D00CEC71B; + remoteInfo = InventoryDemo; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0A2F0CC22630125D00CEC71B /* InventoryDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InventoryDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 0A2F0CC52630125D00CEC71B /* InventoryDemoApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryDemoApp.swift; sourceTree = ""; }; + 0A2F0CC72630125D00CEC71B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 0A2F0CC92630125F00CEC71B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 0A2F0CCC2630125F00CEC71B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 0A2F0CCE2630125F00CEC71B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0A2F0CD32630126000CEC71B /* InventoryDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InventoryDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 0A2F0CD72630126000CEC71B /* InventoryDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryDemoTests.swift; sourceTree = ""; }; + 0A2F0CD92630126000CEC71B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0A2F0CDE2630126000CEC71B /* InventoryDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InventoryDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 0A2F0CE22630126000CEC71B /* InventoryDemoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryDemoUITests.swift; sourceTree = ""; }; + 0A2F0CE42630126000CEC71B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0A2F0CF726301B7C00CEC71B /* InventoryItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryItem.swift; sourceTree = ""; }; + 0A2F0CF926301C2700CEC71B /* LoginView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginView.swift; sourceTree = ""; }; + 0A2F0CFC26301CC900CEC71B /* InputField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InputField.swift; sourceTree = ""; }; + 0A2F0CFE26301CEE00CEC71B /* CaptionLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CaptionLabel.swift; sourceTree = ""; }; + 0A2F0D0026301DB400CEC71B /* CallToActionButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CallToActionButton.swift; sourceTree = ""; }; + 0A2F0D0226301E3F00CEC71B /* CheckBox.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckBox.swift; sourceTree = ""; }; + 0A2F0D04263022EE00CEC71B /* InventoryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InventoryView.swift; sourceTree = ""; }; + 0A2F0D062630261600CEC71B /* ItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemView.swift; sourceTree = ""; }; + 0A2F0D082630292600CEC71B /* CountStepper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountStepper.swift; sourceTree = ""; }; + 0A2F0D0A263041D200CEC71B /* PriceInput.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PriceInput.swift; sourceTree = ""; }; + 0A2F0D0C2630661900CEC71B /* AddItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddItemView.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 0A2F0CBF2630125D00CEC71B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0A2F0CF62630138300CEC71B /* Realm in Frameworks */, + 0A2F0CF42630138300CEC71B /* RealmSwift in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CD02630126000CEC71B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CDB2630126000CEC71B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0A2F0CB92630125D00CEC71B = { + isa = PBXGroup; + children = ( + 0A2F0CC52630125D00CEC71B /* InventoryDemoApp.swift */, + 0A2F0CC42630125D00CEC71B /* InventoryDemo */, + 0A2F0CD62630126000CEC71B /* InventoryDemoTests */, + 0A2F0CE12630126000CEC71B /* InventoryDemoUITests */, + 0A2F0CC32630125D00CEC71B /* Products */, + ); + sourceTree = ""; + }; + 0A2F0CC32630125D00CEC71B /* Products */ = { + isa = PBXGroup; + children = ( + 0A2F0CC22630125D00CEC71B /* InventoryDemo.app */, + 0A2F0CD32630126000CEC71B /* InventoryDemoTests.xctest */, + 0A2F0CDE2630126000CEC71B /* InventoryDemoUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 0A2F0CC42630125D00CEC71B /* InventoryDemo */ = { + isa = PBXGroup; + children = ( + 0A2F0CF1263012E000CEC71B /* Models */, + 0A2F0CF0263012D300CEC71B /* Views */, + 0A2F0CC92630125F00CEC71B /* Assets.xcassets */, + 0A2F0CCE2630125F00CEC71B /* Info.plist */, + 0A2F0CCB2630125F00CEC71B /* Preview Content */, + ); + path = InventoryDemo; + sourceTree = ""; + }; + 0A2F0CCB2630125F00CEC71B /* Preview Content */ = { + isa = PBXGroup; + children = ( + 0A2F0CCC2630125F00CEC71B /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 0A2F0CD62630126000CEC71B /* InventoryDemoTests */ = { + isa = PBXGroup; + children = ( + 0A2F0CD72630126000CEC71B /* InventoryDemoTests.swift */, + 0A2F0CD92630126000CEC71B /* Info.plist */, + ); + path = InventoryDemoTests; + sourceTree = ""; + }; + 0A2F0CE12630126000CEC71B /* InventoryDemoUITests */ = { + isa = PBXGroup; + children = ( + 0A2F0CE22630126000CEC71B /* InventoryDemoUITests.swift */, + 0A2F0CE42630126000CEC71B /* Info.plist */, + ); + path = InventoryDemoUITests; + sourceTree = ""; + }; + 0A2F0CF0263012D300CEC71B /* Views */ = { + isa = PBXGroup; + children = ( + 0A2F0CC72630125D00CEC71B /* ContentView.swift */, + 0A2F0CF926301C2700CEC71B /* LoginView.swift */, + 0A2F0D04263022EE00CEC71B /* InventoryView.swift */, + 0A2F0D062630261600CEC71B /* ItemView.swift */, + 0A2F0D0A263041D200CEC71B /* PriceInput.swift */, + 0A2F0D0C2630661900CEC71B /* AddItemView.swift */, + 0A2F0CFB26301C9800CEC71B /* Components */, + ); + path = Views; + sourceTree = ""; + }; + 0A2F0CF1263012E000CEC71B /* Models */ = { + isa = PBXGroup; + children = ( + 0A2F0CF726301B7C00CEC71B /* InventoryItem.swift */, + ); + path = Models; + sourceTree = ""; + }; + 0A2F0CFB26301C9800CEC71B /* Components */ = { + isa = PBXGroup; + children = ( + 0A2F0CFC26301CC900CEC71B /* InputField.swift */, + 0A2F0CFE26301CEE00CEC71B /* CaptionLabel.swift */, + 0A2F0D0026301DB400CEC71B /* CallToActionButton.swift */, + 0A2F0D0226301E3F00CEC71B /* CheckBox.swift */, + 0A2F0D082630292600CEC71B /* CountStepper.swift */, + ); + path = Components; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 0A2F0CC12630125D00CEC71B /* InventoryDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0A2F0CE72630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemo" */; + buildPhases = ( + 0A2F0CBE2630125D00CEC71B /* Sources */, + 0A2F0CBF2630125D00CEC71B /* Frameworks */, + 0A2F0CC02630125D00CEC71B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = InventoryDemo; + packageProductDependencies = ( + 0A2F0CF32630138300CEC71B /* RealmSwift */, + 0A2F0CF52630138300CEC71B /* Realm */, + ); + productName = InventoryDemo; + productReference = 0A2F0CC22630125D00CEC71B /* InventoryDemo.app */; + productType = "com.apple.product-type.application"; + }; + 0A2F0CD22630126000CEC71B /* InventoryDemoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0A2F0CEA2630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemoTests" */; + buildPhases = ( + 0A2F0CCF2630126000CEC71B /* Sources */, + 0A2F0CD02630126000CEC71B /* Frameworks */, + 0A2F0CD12630126000CEC71B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 0A2F0CD52630126000CEC71B /* PBXTargetDependency */, + ); + name = InventoryDemoTests; + productName = InventoryDemoTests; + productReference = 0A2F0CD32630126000CEC71B /* InventoryDemoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 0A2F0CDD2630126000CEC71B /* InventoryDemoUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0A2F0CED2630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemoUITests" */; + buildPhases = ( + 0A2F0CDA2630126000CEC71B /* Sources */, + 0A2F0CDB2630126000CEC71B /* Frameworks */, + 0A2F0CDC2630126000CEC71B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 0A2F0CE02630126000CEC71B /* PBXTargetDependency */, + ); + name = InventoryDemoUITests; + productName = InventoryDemoUITests; + productReference = 0A2F0CDE2630126000CEC71B /* InventoryDemoUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0A2F0CBA2630125D00CEC71B /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1250; + LastUpgradeCheck = 1250; + TargetAttributes = { + 0A2F0CC12630125D00CEC71B = { + CreatedOnToolsVersion = 12.5; + }; + 0A2F0CD22630126000CEC71B = { + CreatedOnToolsVersion = 12.5; + TestTargetID = 0A2F0CC12630125D00CEC71B; + }; + 0A2F0CDD2630126000CEC71B = { + CreatedOnToolsVersion = 12.5; + TestTargetID = 0A2F0CC12630125D00CEC71B; + }; + }; + }; + buildConfigurationList = 0A2F0CBD2630125D00CEC71B /* Build configuration list for PBXProject "InventoryDemo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 0A2F0CB92630125D00CEC71B; + packageReferences = ( + 0A2F0CF22630138300CEC71B /* XCRemoteSwiftPackageReference "realm-cocoa" */, + ); + productRefGroup = 0A2F0CC32630125D00CEC71B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 0A2F0CC12630125D00CEC71B /* InventoryDemo */, + 0A2F0CD22630126000CEC71B /* InventoryDemoTests */, + 0A2F0CDD2630126000CEC71B /* InventoryDemoUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 0A2F0CC02630125D00CEC71B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0A2F0CCD2630125F00CEC71B /* Preview Assets.xcassets in Resources */, + 0A2F0CCA2630125F00CEC71B /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CD12630126000CEC71B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CDC2630126000CEC71B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 0A2F0CBE2630125D00CEC71B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0A2F0D0326301E3F00CEC71B /* CheckBox.swift in Sources */, + 0A2F0CF826301B7C00CEC71B /* InventoryItem.swift in Sources */, + 0A2F0D0126301DB400CEC71B /* CallToActionButton.swift in Sources */, + 0A2F0D092630292600CEC71B /* CountStepper.swift in Sources */, + 0A2F0D0D2630661900CEC71B /* AddItemView.swift in Sources */, + 0A2F0D072630261600CEC71B /* ItemView.swift in Sources */, + 0A2F0D05263022EE00CEC71B /* InventoryView.swift in Sources */, + 0A2F0D0B263041D200CEC71B /* PriceInput.swift in Sources */, + 0A2F0CC82630125D00CEC71B /* ContentView.swift in Sources */, + 0A2F0CFA26301C2700CEC71B /* LoginView.swift in Sources */, + 0A2F0CFF26301CEE00CEC71B /* CaptionLabel.swift in Sources */, + 0A2F0CFD26301CC900CEC71B /* InputField.swift in Sources */, + 0A2F0CC62630125D00CEC71B /* InventoryDemoApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CCF2630126000CEC71B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0A2F0CD82630126000CEC71B /* InventoryDemoTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0A2F0CDA2630126000CEC71B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0A2F0CE32630126000CEC71B /* InventoryDemoUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 0A2F0CD52630126000CEC71B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0A2F0CC12630125D00CEC71B /* InventoryDemo */; + targetProxy = 0A2F0CD42630126000CEC71B /* PBXContainerItemProxy */; + }; + 0A2F0CE02630126000CEC71B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0A2F0CC12630125D00CEC71B /* InventoryDemo */; + targetProxy = 0A2F0CDF2630126000CEC71B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 0A2F0CE52630126000CEC71B /* 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; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 0A2F0CE62630126000CEC71B /* 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; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 0A2F0CE82630126000CEC71B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"InventoryDemo/Preview Content\""; + DEVELOPMENT_TEAM = CV5PJSAH7N; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = InventoryDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 0A2F0CE92630126000CEC71B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"InventoryDemo/Preview Content\""; + DEVELOPMENT_TEAM = CV5PJSAH7N; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = InventoryDemo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 0A2F0CEB2630126000CEC71B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = CV5PJSAH7N; + INFOPLIST_FILE = InventoryDemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/InventoryDemo.app/InventoryDemo"; + }; + name = Debug; + }; + 0A2F0CEC2630126000CEC71B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = CV5PJSAH7N; + INFOPLIST_FILE = InventoryDemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/InventoryDemo.app/InventoryDemo"; + }; + name = Release; + }; + 0A2F0CEE2630126000CEC71B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = CV5PJSAH7N; + INFOPLIST_FILE = InventoryDemoUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemoUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = InventoryDemo; + }; + name = Debug; + }; + 0A2F0CEF2630126000CEC71B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = CV5PJSAH7N; + INFOPLIST_FILE = InventoryDemoUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.clusterdb.InventoryDemoUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = InventoryDemo; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0A2F0CBD2630125D00CEC71B /* Build configuration list for PBXProject "InventoryDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0A2F0CE52630126000CEC71B /* Debug */, + 0A2F0CE62630126000CEC71B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0A2F0CE72630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0A2F0CE82630126000CEC71B /* Debug */, + 0A2F0CE92630126000CEC71B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0A2F0CEA2630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0A2F0CEB2630126000CEC71B /* Debug */, + 0A2F0CEC2630126000CEC71B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0A2F0CED2630126000CEC71B /* Build configuration list for PBXNativeTarget "InventoryDemoUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0A2F0CEE2630126000CEC71B /* Debug */, + 0A2F0CEF2630126000CEC71B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 0A2F0CF22630138300CEC71B /* XCRemoteSwiftPackageReference "realm-cocoa" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/realm/realm-cocoa"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 10.7.2; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 0A2F0CF32630138300CEC71B /* RealmSwift */ = { + isa = XCSwiftPackageProductDependency; + package = 0A2F0CF22630138300CEC71B /* XCRemoteSwiftPackageReference "realm-cocoa" */; + productName = RealmSwift; + }; + 0A2F0CF52630138300CEC71B /* Realm */ = { + isa = XCSwiftPackageProductDependency; + package = 0A2F0CF22630138300CEC71B /* XCRemoteSwiftPackageReference "realm-cocoa" */; + productName = Realm; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 0A2F0CBA2630125D00CEC71B /* Project object */; +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..6d5417b --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,25 @@ +{ + "object": { + "pins": [ + { + "package": "Realm", + "repositoryURL": "https://github.com/realm/realm-cocoa", + "state": { + "branch": null, + "revision": "ae8e646590396dfc13c1abbf8aa2e48c43766dce", + "version": "10.7.2" + } + }, + { + "package": "RealmDatabase", + "repositoryURL": "https://github.com/realm/realm-core", + "state": { + "branch": null, + "revision": "bab46acdca91c417a0d4849b8f4992a3c17e29a5", + "version": "10.5.5" + } + } + ] + }, + "version": 1 +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcuserdata/andrew.morgan.xcuserdatad/UserInterfaceState.xcuserstate b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcuserdata/andrew.morgan.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..b38d820 Binary files /dev/null and b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/project.xcworkspace/xcuserdata/andrew.morgan.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/xcuserdata/andrew.morgan.xcuserdatad/xcschemes/xcschememanagement.plist b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/xcuserdata/andrew.morgan.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..0dcc437 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo.xcodeproj/xcuserdata/andrew.morgan.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,35 @@ + + + + + SchemeUserState + + GettingStarted (Playground) 1.xcscheme + + isShown + + orderHint + 2 + + GettingStarted (Playground) 2.xcscheme + + isShown + + orderHint + 3 + + GettingStarted (Playground).xcscheme + + isShown + + orderHint + 1 + + InventoryDemo.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/AccentColor.colorset/Contents.json b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/AppIcon.appiconset/Contents.json b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/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/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/Contents.json b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Info.plist b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Info.plist new file mode 100644 index 0000000..efc211a --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Info.plist @@ -0,0 +1,50 @@ + + + + + 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 + + + UIApplicationSupportsIndirectInputEvents + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Models/InventoryItem.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Models/InventoryItem.swift new file mode 100644 index 0000000..62d755a --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Models/InventoryItem.swift @@ -0,0 +1,34 @@ +// +// InventoryItem.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import RealmSwift + +@objcMembers class InventoryItem: Object, ObjectKeyIdentifiable { + dynamic var _id = ObjectId.generate() + dynamic var _partition: String = store + dynamic var name = "" + dynamic var price = 0.0 + dynamic var quantity = 0 + + override static func primaryKey() -> String? { + return "_id" + } + + convenience init(_ name: String) { + self.init() + self.name = name + } +} + +extension InventoryItem { + static var sample: InventoryItem { + let sample = InventoryItem("Widget") + sample.price = 9.99 + sample.quantity = 66 + return sample + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Preview Content/Preview Assets.xcassets/Contents.json b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/AddItemView.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/AddItemView.swift new file mode 100644 index 0000000..f477c51 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/AddItemView.swift @@ -0,0 +1,45 @@ +// +// AddItemView.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI +import RealmSwift + +struct AddItemView: View { + @Environment(\.presentationMode) var presentationMode + + @ObservedResults(InventoryItem.self) var items + + @State var item = InventoryItem() + @State private var priceBuffer = "0.00" + @State private var quantityBuffer = "0" + + var body: some View { + VStack { + InputField(title: "New Product Name", text: $item.name) + InputField(title: "Price", text: $priceBuffer, keyboardType: .decimalPad) + InputField(title: "Quantity", text: $quantityBuffer, keyboardType: .numberPad) + } + .padding() + .navigationBarTitle("New Inventory Item", displayMode: .inline) + .navigationBarItems(trailing: Button(action: save) { Text("Save") }) + } + + private func save() { + item.price = Double(priceBuffer) ?? 0.00 + item.quantity = Int(quantityBuffer) ?? 0 + $items.append(item) + self.presentationMode.wrappedValue.dismiss() + } +} + +struct AddItemView_Previews: PreviewProvider { + static var previews: some View { + NavigationView { + AddItemView() + } + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CallToActionButton.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CallToActionButton.swift new file mode 100644 index 0000000..b0241c0 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CallToActionButton.swift @@ -0,0 +1,51 @@ +// +// CallToActionButton.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct CallToActionButton: View { + let title: String + var showingArrow = false + let action: () -> Void + + private enum Dimensions { + static let labelSpacing: CGFloat = 14 + static let lineLimit = 1 + static let radius: CGFloat = 50.0 + } + + var body: some View { + Button(action: action) { + HStack { + Spacer(minLength: Dimensions.labelSpacing) + Text(LocalizedStringKey(title)) + .padding(.vertical, Dimensions.labelSpacing) + .lineLimit(Dimensions.lineLimit) + .font(Font.body.weight(.semibold)) + if showingArrow { + Image(systemName: "arrow.right") + .font(Font.caption2.weight(.bold)) + } + Spacer(minLength: Dimensions.labelSpacing) + } + .foregroundColor(.white) + .background(Color.blue) + .cornerRadius(Dimensions.radius) + } + } +} + +struct CallToActionButton_Previews: PreviewProvider { + static var previews: some View { + Group { + CallToActionButton(title: "Button", showingArrow: true, action: {}) + CallToActionButton(title: "Button", showingArrow: false, action: {}) + } + .previewLayout(.sizeThatFits) + .padding() + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CaptionLabel.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CaptionLabel.swift new file mode 100644 index 0000000..0e86d1e --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CaptionLabel.swift @@ -0,0 +1,33 @@ +// +// CaptionLabel.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct CaptionLabel: View { + let title: String + + private let lineLimit = 5 + + var body: some View { + HStack { + Text(LocalizedStringKey(title)) + .font(.caption) + .lineLimit(lineLimit) + .multilineTextAlignment(.leading) + .foregroundColor(.secondary) + Spacer() + } + } +} + +struct CaptionLabel_Previews: PreviewProvider { + static var previews: some View { + CaptionLabel(title: "Title") + .previewLayout(.sizeThatFits) + .padding() + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CheckBox.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CheckBox.swift new file mode 100644 index 0000000..b34afbd --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CheckBox.swift @@ -0,0 +1,34 @@ +// +// CheckBox.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct CheckBox: View { + var title: String + @Binding var isChecked: Bool + + var body: some View { + Button(action: { self.isChecked.toggle() }) { + HStack { + Image(systemName: isChecked ? "checkmark.square": "square") + Text(title) + } + .foregroundColor(isChecked ? .primary : .secondary) + } + } +} + +struct CheckBox_Previews: PreviewProvider { + static var previews: some View { + VStack { + CheckBox(title: "Test checkbox", isChecked: .constant(true)) + CheckBox(title: "Test checkbox", isChecked: .constant(false)) + } + .padding() + .previewLayout(.sizeThatFits) + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CountStepper.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CountStepper.swift new file mode 100644 index 0000000..c78b15d --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/CountStepper.swift @@ -0,0 +1,40 @@ +// +// CountStepper.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct CountStepper: View { + let label: String + @Binding var value: Int + + var body: some View { + VStack { + HStack { + Spacer() + Text("\(label): \(value)") + .foregroundColor(.secondary) + } + Stepper(value: $value, in: 0...10000) {} + } + } +} + +struct BindingView: View { + @State var value: Int + + var body: some View { + CountStepper(label: "Qty", value: $value) + } +} + +struct CountStepper_Previews: PreviewProvider { + static var previews: some View { + BindingView(value: 7) + .previewLayout(.sizeThatFits) + .padding() + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/InputField.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/InputField.swift new file mode 100644 index 0000000..c60f00e --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/Components/InputField.swift @@ -0,0 +1,54 @@ +// +// InputField.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct InputField: View { + + let title: String + @Binding private(set) var text: String + var showingSecureField = false + var keyboardType: UIKeyboardType = .default + + private enum Dimensions { + static let noSpacing: CGFloat = 0 + static let bottomPadding: CGFloat = 16 + static let iconSize: CGFloat = 20 + } + + var body: some View { + VStack(spacing: Dimensions.noSpacing) { + CaptionLabel(title: title) + HStack(spacing: Dimensions.noSpacing) { + if showingSecureField { + SecureField("", text: $text) + .keyboardType(keyboardType) + .padding(.bottom, Dimensions.bottomPadding) + .foregroundColor(.primary) + .font(.body) + } else { + TextField("", text: $text) + .keyboardType(keyboardType) + .padding(.bottom, Dimensions.bottomPadding) + .foregroundColor(.primary) + .font(.body) + } + } + } + } +} + +struct InputField_Previews: PreviewProvider { + static var previews: some View { + Group { + InputField(title: "Input", text: .constant("Data")) + InputField(title: "Input secure", text: .constant("Data"), showingSecureField: true) + } + .previewLayout(.sizeThatFits) + .padding() + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ContentView.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ContentView.swift new file mode 100644 index 0000000..26c5494 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ContentView.swift @@ -0,0 +1,34 @@ +// +// ContentView.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct ContentView: View { + @State private var username = "" + + var body: some View { + NavigationView { + Group { + if app.currentUser == nil { + LoginView(username: $username) + } else { + InventoryView(username: $username) + .environment(\.realmConfiguration, app.currentUser!.configuration(partitionValue: store)) + } + } + .navigationBarTitle(username, displayMode: .inline) + } + } +} + + + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/InventoryView.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/InventoryView.swift new file mode 100644 index 0000000..770561a --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/InventoryView.swift @@ -0,0 +1,49 @@ +// +// InventoryView.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI +import RealmSwift + +struct InventoryView: View { + @ObservedResults(InventoryItem.self, sortDescriptor: SortDescriptor(keyPath: "name", ascending: true)) var items + @Binding var username: String + + @State var showingNewItem = false + + var body: some View { + VStack { + ScrollView(.vertical) { + ForEach(items) { item in + ItemView(item: item) + } + } + .padding() + if let user = app.currentUser { + NavigationLink( + destination: AddItemView() + .environment(\.realmConfiguration, user.configuration(partitionValue: store)), + isActive: $showingNewItem) {} + } + } + .navigationBarTitle("Store \(store) Inventory", displayMode: .inline) + .navigationBarItems(leading: Button(action: logout) { Text("Logout") }, + trailing: Button(action: { showingNewItem.toggle() }) { Image(systemName: "plus") }) + } + private func logout() { + app.currentUser?.logOut() {_ in + username = "" + } + } +} + +struct InventoryView_Previews: PreviewProvider { + static var previews: some View { + NavigationView { + InventoryView(username: .constant("Billy")) + } + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ItemView.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ItemView.swift new file mode 100644 index 0000000..146f491 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/ItemView.swift @@ -0,0 +1,49 @@ +// +// ItemView.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI +import RealmSwift + +struct ItemView: View { + @ObservedRealmObject var item: InventoryItem + + @State private var showingPriceEditor = false + + var body: some View { + VStack { + HStack { + VStack { + HStack { + Text("\(item.name)") + .fontWeight(.bold) + Spacer() + } + HStack { + // TODO: Need to be able to edit the price + Text("Price: \(item.price, specifier: "%.2f")") + Spacer() + Button(action : { showingPriceEditor.toggle() }) { + Image(systemName: "pencil") + } + } + .foregroundColor(.secondary) + } + CountStepper(label: "Qty", value: $item.quantity) + } + Divider() + } + .sheet(isPresented: $showingPriceEditor) { + PriceInput(price: $item.price) + } + } +} + +struct ItemView_Previews: PreviewProvider { + static var previews: some View { + ItemView(item: .sample) + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/LoginView.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/LoginView.swift new file mode 100644 index 0000000..f9baec0 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/LoginView.swift @@ -0,0 +1,74 @@ +// +// LoginView.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI +import RealmSwift + +struct LoginView: View { + @Binding var username: String + + @State private var email = "" + @State private var password = "" + @State private var userStore = store + @State private var newUser = false + + var body: some View { + VStack { + Spacer() + InputField(title: "Email", text: $email) + InputField(title: "Password", text: $password, showingSecureField: true) + InputField(title: "Store", text: $userStore) + CallToActionButton( + title: newUser ? "Register User" : "Log In", + action: userAction + ) + Button(action: { newUser.toggle() }) { + HStack { + CheckBox(title: "Create Account", isChecked: $newUser) + Spacer() + } + } + Spacer() + } + .padding() + .navigationBarTitle("Login", displayMode: .inline) + .navigationBarItems(leading: EmptyView(), trailing: EmptyView()) + } + + func userAction() { + if newUser { + signup() + } else { + login() + } + } + + private func signup() { + app.emailPasswordAuth.registerUser(email: email, password: password) { error in + if let error = error { + print("\(error.localizedDescription)") + } else { + login() + } + } + } + + private func login() { + app.login(credentials: .emailPassword(email: email, password: password)) { _ in + DispatchQueue.main.async { + username = email + store = userStore + } + } + } +} + +struct LoginView_Previews: PreviewProvider { + static var previews: some View { + LoginView(username: .constant("Billy")) + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/PriceInput.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/PriceInput.swift new file mode 100644 index 0000000..f5e24f1 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemo/Views/PriceInput.swift @@ -0,0 +1,47 @@ +// +// PriceInput.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI + +struct PriceInput: View { + @Environment(\.presentationMode) var presentationMode + + @Binding var price: Double + + @State private var buffer = "0.00" + + var body: some View { + NavigationView { + InputField(title: "Price", text: $buffer, keyboardType: .decimalPad) + .navigationBarTitle("Edit Price", displayMode: .inline) + .navigationBarItems(trailing: Button(action: saveAndClose) { + Text("Save") + }) + .onAppear() { buffer = String(price) } + .padding() + } + } + + private func saveAndClose() { + price = Double(buffer) ?? price + presentationMode.wrappedValue.dismiss() + } +} + +struct PriceBindingView: View { + @State var value: Double + + var body: some View { + PriceInput(price: $value) + } +} + +struct PricePriceInput_Previews: PreviewProvider { + static var previews: some View { + PriceBindingView(value: 4.99) + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoApp.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoApp.swift new file mode 100644 index 0000000..c31e83f --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoApp.swift @@ -0,0 +1,21 @@ +// +// InventoryDemoApp.swift +// InventoryDemo +// +// Created by Andrew Morgan on 21/04/2021. +// + +import SwiftUI +import RealmSwift + +let app = RealmSwift.App(id: "inventorysync-xxxx") // TODO: Set the Realm application ID +var store = "101" + +@main +struct InventoryDemoApp: SwiftUI.App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/Info.plist b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/InventoryDemoTests.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/InventoryDemoTests.swift new file mode 100644 index 0000000..806fe38 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoTests/InventoryDemoTests.swift @@ -0,0 +1,33 @@ +// +// InventoryDemoTests.swift +// InventoryDemoTests +// +// Created by Andrew Morgan on 21/04/2021. +// + +import XCTest +@testable import InventoryDemo + +class InventoryDemoTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/Info.plist b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/InventoryDemoUITests.swift b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/InventoryDemoUITests.swift new file mode 100644 index 0000000..a3e4e56 --- /dev/null +++ b/inventory/clients/ios-swiftui/InventoryDemo/InventoryDemoUITests/InventoryDemoUITests.swift @@ -0,0 +1,42 @@ +// +// InventoryDemoUITests.swift +// InventoryDemoUITests +// +// Created by Andrew Morgan on 21/04/2021. +// + +import XCTest + +class InventoryDemoUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/inventory/clients/ios/InventoryDemo/Classes/Model/Constants.swift b/inventory/clients/ios/InventoryDemo/Classes/Model/Constants.swift index 5f7c7a5..bc7596b 100644 --- a/inventory/clients/ios/InventoryDemo/Classes/Model/Constants.swift +++ b/inventory/clients/ios/InventoryDemo/Classes/Model/Constants.swift @@ -11,7 +11,7 @@ import RealmSwift struct Constants { // Set this to your Realm App ID found in the Realm UI. - static let REALM_APP_ID = "inventorysync-cqhvc" + static let REALM_APP_ID = "inventorysync-xxxxx" } let app = App(id: Constants.REALM_APP_ID) diff --git a/inventory/export/sync/auth_providers/api-key.json b/inventory/export/sync/auth_providers/api-key.json index 6769d32..e9a917c 100644 --- a/inventory/export/sync/auth_providers/api-key.json +++ b/inventory/export/sync/auth_providers/api-key.json @@ -1,4 +1,5 @@ { + "id": "607ef34d21b3812fd6c96cb8", "name": "api-key", "type": "api-key", "disabled": true diff --git a/inventory/export/sync/auth_providers/local-userpass.json b/inventory/export/sync/auth_providers/local-userpass.json index 9c97e39..0cba66a 100644 --- a/inventory/export/sync/auth_providers/local-userpass.json +++ b/inventory/export/sync/auth_providers/local-userpass.json @@ -1,4 +1,5 @@ { + "id": "607ef34d21b3812fd6c96cb9", "name": "local-userpass", "type": "local-userpass", "config": { diff --git a/inventory/export/sync/config.json b/inventory/export/sync/config.json index fdb2480..1aa13c3 100644 --- a/inventory/export/sync/config.json +++ b/inventory/export/sync/config.json @@ -1,4 +1,5 @@ { + "app_id": "inventorysync-xlrrz", "config_version": 20200603, "name": "InventorySync", "location": "US-VA", diff --git a/inventory/export/sync/environments/development.json b/inventory/export/sync/environments/development.json new file mode 100644 index 0000000..ad7e98e --- /dev/null +++ b/inventory/export/sync/environments/development.json @@ -0,0 +1,3 @@ +{ + "values": {} +} diff --git a/inventory/export/sync/environments/no-environment.json b/inventory/export/sync/environments/no-environment.json new file mode 100644 index 0000000..ad7e98e --- /dev/null +++ b/inventory/export/sync/environments/no-environment.json @@ -0,0 +1,3 @@ +{ + "values": {} +} diff --git a/inventory/export/sync/environments/production.json b/inventory/export/sync/environments/production.json new file mode 100644 index 0000000..ad7e98e --- /dev/null +++ b/inventory/export/sync/environments/production.json @@ -0,0 +1,3 @@ +{ + "values": {} +} diff --git a/inventory/export/sync/environments/qa.json b/inventory/export/sync/environments/qa.json new file mode 100644 index 0000000..ad7e98e --- /dev/null +++ b/inventory/export/sync/environments/qa.json @@ -0,0 +1,3 @@ +{ + "values": {} +} diff --git a/inventory/export/sync/environments/testing.json b/inventory/export/sync/environments/testing.json new file mode 100644 index 0000000..ad7e98e --- /dev/null +++ b/inventory/export/sync/environments/testing.json @@ -0,0 +1,3 @@ +{ + "values": {} +} diff --git a/inventory/export/sync/graphql/config.json b/inventory/export/sync/graphql/config.json new file mode 100644 index 0000000..c1d7285 --- /dev/null +++ b/inventory/export/sync/graphql/config.json @@ -0,0 +1,3 @@ +{ + "use_natural_pluralization": true +} diff --git a/inventory/export/sync/services/mongodb-atlas/config.json b/inventory/export/sync/services/mongodb-atlas/config.json index f2c6da4..0515f63 100644 --- a/inventory/export/sync/services/mongodb-atlas/config.json +++ b/inventory/export/sync/services/mongodb-atlas/config.json @@ -1,4 +1,5 @@ { + "id": "607ef34c21b3812fd6c96c5c", "name": "mongodb-atlas", "type": "mongodb-atlas", "config": { @@ -14,8 +15,7 @@ "read": {}, "write": {} } - }, - "last_disabled": 1594320770 + } }, "wireProtocolEnabled": false }, diff --git a/inventory/export/sync/services/mongodb-atlas/rules/InventoryDemo.InventoryItem.json b/inventory/export/sync/services/mongodb-atlas/rules/InventoryDemo.InventoryItem.json index 14e2104..79c27a3 100644 --- a/inventory/export/sync/services/mongodb-atlas/rules/InventoryDemo.InventoryItem.json +++ b/inventory/export/sync/services/mongodb-atlas/rules/InventoryDemo.InventoryItem.json @@ -1,6 +1,7 @@ { - "database": "InventoryDemo", "collection": "InventoryItem", + "database": "InventoryDemo", + "id": "607ef34d21b3812fd6c96cb7", "roles": [ { "name": "default",