Changed App Name To My Mind

This commit is contained in:
Alexander Davis
2017-03-31 02:42:43 +01:00
commit 7df41a6301
540 changed files with 295800 additions and 0 deletions

View File

@@ -0,0 +1,769 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {
/* Begin PBXBuildFile section */
5F5A1D291E8DB0F300BCE63D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F5A1D281E8DB0F300BCE63D /* AppDelegate.swift */; };
5F5A1D2E1E8DB0F300BCE63D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5F5A1D2C1E8DB0F300BCE63D /* Main.storyboard */; };
5F5A1D301E8DB0F300BCE63D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5F5A1D2F1E8DB0F300BCE63D /* Assets.xcassets */; };
5F5A1D331E8DB0F300BCE63D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5F5A1D311E8DB0F300BCE63D /* LaunchScreen.storyboard */; };
5F5A1D3E1E8DB0F300BCE63D /* My_MindTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F5A1D3D1E8DB0F300BCE63D /* My_MindTests.swift */; };
5F5A1D491E8DB0F300BCE63D /* My_MindUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F5A1D481E8DB0F300BCE63D /* My_MindUITests.swift */; };
5F5A1D571E8DB24C00BCE63D /* Sdk in Resources */ = {isa = PBXBuildFile; fileRef = 5F5A1D561E8DB24C00BCE63D /* Sdk */; };
5F5A1D5D1E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D581E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework */; };
5F5A1D5E1E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D581E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5F5A1D5F1E8DB26200BCE63D /* AWSCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D591E8DB26200BCE63D /* AWSCore.framework */; };
5F5A1D601E8DB26200BCE63D /* AWSCore.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D591E8DB26200BCE63D /* AWSCore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5F5A1D611E8DB26200BCE63D /* AWSPinpoint.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D5A1E8DB26200BCE63D /* AWSPinpoint.framework */; };
5F5A1D621E8DB26200BCE63D /* AWSPinpoint.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D5A1E8DB26200BCE63D /* AWSPinpoint.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5F5A1D631E8DB26200BCE63D /* AWSS3.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D5B1E8DB26200BCE63D /* AWSS3.framework */; };
5F5A1D641E8DB26200BCE63D /* AWSS3.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D5B1E8DB26200BCE63D /* AWSS3.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
5F5A1D6B1E8DB2A300BCE63D /* AWSConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F5A1D681E8DB2A300BCE63D /* AWSConfiguration.swift */; };
5F5A1D6C1E8DB2A300BCE63D /* AWSMobileClient.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F5A1D691E8DB2A300BCE63D /* AWSMobileClient.swift */; };
5F5A1D6D1E8DB2A300BCE63D /* AWSMobileHubHelper.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D6A1E8DB2A300BCE63D /* AWSMobileHubHelper.framework */; };
5F5A1D711E8DB2F100BCE63D /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D6F1E8DB2F100BCE63D /* libsqlite3.tbd */; };
5F5A1D721E8DB2F100BCE63D /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F5A1D701E8DB2F100BCE63D /* libz.tbd */; };
5FF72FEF1E8DDECA00FFD64D /* SignInViewControllerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FE81E8DDECA00FFD64D /* SignInViewControllerExtensions.swift */; };
5FF72FF01E8DDECA00FFD64D /* UserPoolForgotPasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FE91E8DDECA00FFD64D /* UserPoolForgotPasswordViewController.swift */; };
5FF72FF11E8DDECA00FFD64D /* UserPoolMFAViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FEA1E8DDECA00FFD64D /* UserPoolMFAViewController.swift */; };
5FF72FF21E8DDECA00FFD64D /* UserPoolNewPasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FEB1E8DDECA00FFD64D /* UserPoolNewPasswordViewController.swift */; };
5FF72FF31E8DDECA00FFD64D /* UserPools.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5FF72FEC1E8DDECA00FFD64D /* UserPools.storyboard */; };
5FF72FF41E8DDECA00FFD64D /* UserPoolSignUpConfirmationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FED1E8DDECA00FFD64D /* UserPoolSignUpConfirmationViewController.swift */; };
5FF72FF51E8DDECA00FFD64D /* UserPoolSignUpViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF72FEE1E8DDECA00FFD64D /* UserPoolSignUpViewController.swift */; };
5FF72FF71E8DDF4100FFD64D /* OnBoarding.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5FF72FF61E8DDF4100FFD64D /* OnBoarding.storyboard */; };
5FF72FF91E8DDF6D00FFD64D /* Login.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5FF72FF81E8DDF6D00FFD64D /* Login.storyboard */; };
5FF9721B1E8DBA98007AE280 /* OnBoardingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF9721A1E8DBA98007AE280 /* OnBoardingController.swift */; };
5FF9721E1E8DBAC3007AE280 /* WelcomeScreenOne.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF9721D1E8DBAC3007AE280 /* WelcomeScreenOne.swift */; };
5FF972201E8DBAD9007AE280 /* WelcomeScreenTwo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF9721F1E8DBAD9007AE280 /* WelcomeScreenTwo.swift */; };
5FF972221E8DBAE1007AE280 /* WelcomeScreenThree.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF972211E8DBAE1007AE280 /* WelcomeScreenThree.swift */; };
5FF972241E8DBC27007AE280 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5FF972231E8DBC27007AE280 /* Images.xcassets */; };
5FF972281E8DC9F3007AE280 /* ForumView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF972271E8DC9F3007AE280 /* ForumView.swift */; };
5FF9722A1E8DCE83007AE280 /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF972291E8DCE83007AE280 /* LoginView.swift */; };
5FF9722D1E8DCEA7007AE280 /* SignUpView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FF9722C1E8DCEA7007AE280 /* SignUpView.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
5F5A1D3A1E8DB0F300BCE63D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 5F5A1D1D1E8DB0F300BCE63D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 5F5A1D241E8DB0F300BCE63D;
remoteInfo = "My Mind";
};
5F5A1D451E8DB0F300BCE63D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 5F5A1D1D1E8DB0F300BCE63D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 5F5A1D241E8DB0F300BCE63D;
remoteInfo = "My Mind";
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
5F5A1D651E8DB26200BCE63D /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
5F5A1D641E8DB26200BCE63D /* AWSS3.framework in Embed Frameworks */,
5F5A1D5E1E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework in Embed Frameworks */,
5F5A1D601E8DB26200BCE63D /* AWSCore.framework in Embed Frameworks */,
5F5A1D621E8DB26200BCE63D /* AWSPinpoint.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
5F5A1D251E8DB0F300BCE63D /* My Mind.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "My Mind.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5F5A1D281E8DB0F300BCE63D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5F5A1D2D1E8DB0F300BCE63D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5F5A1D2F1E8DB0F300BCE63D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5F5A1D321E8DB0F300BCE63D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5F5A1D341E8DB0F300BCE63D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5F5A1D391E8DB0F300BCE63D /* My MindTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "My MindTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
5F5A1D3D1E8DB0F300BCE63D /* My_MindTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = My_MindTests.swift; sourceTree = "<group>"; };
5F5A1D3F1E8DB0F300BCE63D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5F5A1D441E8DB0F300BCE63D /* My MindUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "My MindUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
5F5A1D481E8DB0F300BCE63D /* My_MindUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = My_MindUITests.swift; sourceTree = "<group>"; };
5F5A1D4A1E8DB0F400BCE63D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5F5A1D561E8DB24C00BCE63D /* Sdk */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Sdk; sourceTree = "<group>"; };
5F5A1D581E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AWSCognitoIdentityProvider.framework; path = "My Mind/Sdk/Aws/AWSCognitoIdentityProvider.framework"; sourceTree = "<group>"; };
5F5A1D591E8DB26200BCE63D /* AWSCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AWSCore.framework; path = "My Mind/Sdk/Aws/AWSCore.framework"; sourceTree = "<group>"; };
5F5A1D5A1E8DB26200BCE63D /* AWSPinpoint.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AWSPinpoint.framework; path = "My Mind/Sdk/Aws/AWSPinpoint.framework"; sourceTree = "<group>"; };
5F5A1D5B1E8DB26200BCE63D /* AWSS3.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AWSS3.framework; path = "My Mind/Sdk/Aws/AWSS3.framework"; sourceTree = "<group>"; };
5F5A1D5C1E8DB26200BCE63D /* extras */ = {isa = PBXFileReference; lastKnownFileType = folder; name = extras; path = "My Mind/Sdk/Aws/extras"; sourceTree = "<group>"; };
5F5A1D681E8DB2A300BCE63D /* AWSConfiguration.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AWSConfiguration.swift; sourceTree = "<group>"; };
5F5A1D691E8DB2A300BCE63D /* AWSMobileClient.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AWSMobileClient.swift; sourceTree = "<group>"; };
5F5A1D6A1E8DB2A300BCE63D /* AWSMobileHubHelper.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AWSMobileHubHelper.framework; sourceTree = "<group>"; };
5F5A1D6F1E8DB2F100BCE63D /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
5F5A1D701E8DB2F100BCE63D /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
5FB1172E1E8DE5C800BB1B9B /* My Mind.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "My Mind.entitlements"; sourceTree = "<group>"; };
5FF72FE81E8DDECA00FFD64D /* SignInViewControllerExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SignInViewControllerExtensions.swift; sourceTree = "<group>"; };
5FF72FE91E8DDECA00FFD64D /* UserPoolForgotPasswordViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolForgotPasswordViewController.swift; sourceTree = "<group>"; };
5FF72FEA1E8DDECA00FFD64D /* UserPoolMFAViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolMFAViewController.swift; sourceTree = "<group>"; };
5FF72FEB1E8DDECA00FFD64D /* UserPoolNewPasswordViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolNewPasswordViewController.swift; sourceTree = "<group>"; };
5FF72FEC1E8DDECA00FFD64D /* UserPools.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = UserPools.storyboard; sourceTree = "<group>"; };
5FF72FED1E8DDECA00FFD64D /* UserPoolSignUpConfirmationViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolSignUpConfirmationViewController.swift; sourceTree = "<group>"; };
5FF72FEE1E8DDECA00FFD64D /* UserPoolSignUpViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserPoolSignUpViewController.swift; sourceTree = "<group>"; };
5FF72FF61E8DDF4100FFD64D /* OnBoarding.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = OnBoarding.storyboard; sourceTree = "<group>"; };
5FF72FF81E8DDF6D00FFD64D /* Login.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Login.storyboard; sourceTree = "<group>"; };
5FF9721A1E8DBA98007AE280 /* OnBoardingController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OnBoardingController.swift; sourceTree = "<group>"; };
5FF9721D1E8DBAC3007AE280 /* WelcomeScreenOne.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WelcomeScreenOne.swift; sourceTree = "<group>"; };
5FF9721F1E8DBAD9007AE280 /* WelcomeScreenTwo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WelcomeScreenTwo.swift; sourceTree = "<group>"; };
5FF972211E8DBAE1007AE280 /* WelcomeScreenThree.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WelcomeScreenThree.swift; sourceTree = "<group>"; };
5FF972231E8DBC27007AE280 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
5FF972271E8DC9F3007AE280 /* ForumView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForumView.swift; sourceTree = "<group>"; };
5FF972291E8DCE83007AE280 /* LoginView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoginView.swift; sourceTree = "<group>"; };
5FF9722C1E8DCEA7007AE280 /* SignUpView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SignUpView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
5F5A1D221E8DB0F300BCE63D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5F5A1D711E8DB2F100BCE63D /* libsqlite3.tbd in Frameworks */,
5F5A1D721E8DB2F100BCE63D /* libz.tbd in Frameworks */,
5F5A1D6D1E8DB2A300BCE63D /* AWSMobileHubHelper.framework in Frameworks */,
5F5A1D631E8DB26200BCE63D /* AWSS3.framework in Frameworks */,
5F5A1D5D1E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework in Frameworks */,
5F5A1D5F1E8DB26200BCE63D /* AWSCore.framework in Frameworks */,
5F5A1D611E8DB26200BCE63D /* AWSPinpoint.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D361E8DB0F300BCE63D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D411E8DB0F300BCE63D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
5F5A1D1C1E8DB0F300BCE63D = {
isa = PBXGroup;
children = (
5F5A1D581E8DB26200BCE63D /* AWSCognitoIdentityProvider.framework */,
5F5A1D591E8DB26200BCE63D /* AWSCore.framework */,
5F5A1D5A1E8DB26200BCE63D /* AWSPinpoint.framework */,
5F5A1D5B1E8DB26200BCE63D /* AWSS3.framework */,
5F5A1D5C1E8DB26200BCE63D /* extras */,
5F5A1D271E8DB0F300BCE63D /* My Mind */,
5F5A1D3C1E8DB0F300BCE63D /* My MindTests */,
5F5A1D471E8DB0F300BCE63D /* My MindUITests */,
5F5A1D261E8DB0F300BCE63D /* Products */,
5F5A1D6E1E8DB2F000BCE63D /* Frameworks */,
);
sourceTree = "<group>";
};
5F5A1D261E8DB0F300BCE63D /* Products */ = {
isa = PBXGroup;
children = (
5F5A1D251E8DB0F300BCE63D /* My Mind.app */,
5F5A1D391E8DB0F300BCE63D /* My MindTests.xctest */,
5F5A1D441E8DB0F300BCE63D /* My MindUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
5F5A1D271E8DB0F300BCE63D /* My Mind */ = {
isa = PBXGroup;
children = (
5FB1172E1E8DE5C800BB1B9B /* My Mind.entitlements */,
5FF9721C1E8DBAA6007AE280 /* OnBoarding Controllers */,
5FF972191E8DBA65007AE280 /* Login Controller Group */,
5FF972181E8DBA4C007AE280 /* Main Controller Group */,
5F5A1D671E8DB2A300BCE63D /* AmazonAws */,
5F5A1D561E8DB24C00BCE63D /* Sdk */,
5F5A1D281E8DB0F300BCE63D /* AppDelegate.swift */,
5FF972231E8DBC27007AE280 /* Images.xcassets */,
5F5A1D2F1E8DB0F300BCE63D /* Assets.xcassets */,
5F5A1D311E8DB0F300BCE63D /* LaunchScreen.storyboard */,
5F5A1D341E8DB0F300BCE63D /* Info.plist */,
);
path = "My Mind";
sourceTree = "<group>";
};
5F5A1D3C1E8DB0F300BCE63D /* My MindTests */ = {
isa = PBXGroup;
children = (
5F5A1D3D1E8DB0F300BCE63D /* My_MindTests.swift */,
5F5A1D3F1E8DB0F300BCE63D /* Info.plist */,
);
path = "My MindTests";
sourceTree = "<group>";
};
5F5A1D471E8DB0F300BCE63D /* My MindUITests */ = {
isa = PBXGroup;
children = (
5F5A1D481E8DB0F300BCE63D /* My_MindUITests.swift */,
5F5A1D4A1E8DB0F400BCE63D /* Info.plist */,
);
path = "My MindUITests";
sourceTree = "<group>";
};
5F5A1D671E8DB2A300BCE63D /* AmazonAws */ = {
isa = PBXGroup;
children = (
5F5A1D681E8DB2A300BCE63D /* AWSConfiguration.swift */,
5F5A1D691E8DB2A300BCE63D /* AWSMobileClient.swift */,
5F5A1D6A1E8DB2A300BCE63D /* AWSMobileHubHelper.framework */,
);
path = AmazonAws;
sourceTree = "<group>";
};
5F5A1D6E1E8DB2F000BCE63D /* Frameworks */ = {
isa = PBXGroup;
children = (
5F5A1D6F1E8DB2F100BCE63D /* libsqlite3.tbd */,
5F5A1D701E8DB2F100BCE63D /* libz.tbd */,
);
name = Frameworks;
sourceTree = "<group>";
};
5FF72FE71E8DDECA00FFD64D /* UserPools */ = {
isa = PBXGroup;
children = (
5FF72FE81E8DDECA00FFD64D /* SignInViewControllerExtensions.swift */,
5FF72FE91E8DDECA00FFD64D /* UserPoolForgotPasswordViewController.swift */,
5FF72FEA1E8DDECA00FFD64D /* UserPoolMFAViewController.swift */,
5FF72FEB1E8DDECA00FFD64D /* UserPoolNewPasswordViewController.swift */,
5FF72FEC1E8DDECA00FFD64D /* UserPools.storyboard */,
5FF72FED1E8DDECA00FFD64D /* UserPoolSignUpConfirmationViewController.swift */,
5FF72FEE1E8DDECA00FFD64D /* UserPoolSignUpViewController.swift */,
);
path = UserPools;
sourceTree = "<group>";
};
5FF972181E8DBA4C007AE280 /* Main Controller Group */ = {
isa = PBXGroup;
children = (
5F5A1D2C1E8DB0F300BCE63D /* Main.storyboard */,
5FF972271E8DC9F3007AE280 /* ForumView.swift */,
);
name = "Main Controller Group";
sourceTree = "<group>";
};
5FF972191E8DBA65007AE280 /* Login Controller Group */ = {
isa = PBXGroup;
children = (
5FF72FF81E8DDF6D00FFD64D /* Login.storyboard */,
5FF972291E8DCE83007AE280 /* LoginView.swift */,
5FF9722C1E8DCEA7007AE280 /* SignUpView.swift */,
5FF72FE71E8DDECA00FFD64D /* UserPools */,
);
name = "Login Controller Group";
sourceTree = "<group>";
};
5FF9721C1E8DBAA6007AE280 /* OnBoarding Controllers */ = {
isa = PBXGroup;
children = (
5FF72FF61E8DDF4100FFD64D /* OnBoarding.storyboard */,
5FF9721A1E8DBA98007AE280 /* OnBoardingController.swift */,
5FF9721D1E8DBAC3007AE280 /* WelcomeScreenOne.swift */,
5FF9721F1E8DBAD9007AE280 /* WelcomeScreenTwo.swift */,
5FF972211E8DBAE1007AE280 /* WelcomeScreenThree.swift */,
);
name = "OnBoarding Controllers";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
5F5A1D241E8DB0F300BCE63D /* My Mind */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5F5A1D4D1E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My Mind" */;
buildPhases = (
5F5A1D211E8DB0F300BCE63D /* Sources */,
5F5A1D221E8DB0F300BCE63D /* Frameworks */,
5F5A1D231E8DB0F300BCE63D /* Resources */,
5F5A1D651E8DB26200BCE63D /* Embed Frameworks */,
5F5A1D661E8DB27100BCE63D /* ShellScript */,
);
buildRules = (
);
dependencies = (
);
name = "My Mind";
productName = "My Mind";
productReference = 5F5A1D251E8DB0F300BCE63D /* My Mind.app */;
productType = "com.apple.product-type.application";
};
5F5A1D381E8DB0F300BCE63D /* My MindTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5F5A1D501E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My MindTests" */;
buildPhases = (
5F5A1D351E8DB0F300BCE63D /* Sources */,
5F5A1D361E8DB0F300BCE63D /* Frameworks */,
5F5A1D371E8DB0F300BCE63D /* Resources */,
);
buildRules = (
);
dependencies = (
5F5A1D3B1E8DB0F300BCE63D /* PBXTargetDependency */,
);
name = "My MindTests";
productName = "My MindTests";
productReference = 5F5A1D391E8DB0F300BCE63D /* My MindTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
5F5A1D431E8DB0F300BCE63D /* My MindUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5F5A1D531E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My MindUITests" */;
buildPhases = (
5F5A1D401E8DB0F300BCE63D /* Sources */,
5F5A1D411E8DB0F300BCE63D /* Frameworks */,
5F5A1D421E8DB0F300BCE63D /* Resources */,
);
buildRules = (
);
dependencies = (
5F5A1D461E8DB0F300BCE63D /* PBXTargetDependency */,
);
name = "My MindUITests";
productName = "My MindUITests";
productReference = 5F5A1D441E8DB0F300BCE63D /* My MindUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
5F5A1D1D1E8DB0F300BCE63D /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastUpgradeCheck = 0830;
ORGANIZATIONNAME = "Alexander Davis";
TargetAttributes = {
5F5A1D241E8DB0F300BCE63D = {
CreatedOnToolsVersion = 8.3;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.BackgroundModes = {
enabled = 1;
};
com.apple.DataProtection = {
enabled = 1;
};
com.apple.Push = {
enabled = 1;
};
};
};
5F5A1D381E8DB0F300BCE63D = {
CreatedOnToolsVersion = 8.3;
DevelopmentTeam = 28CC8SCVUN;
ProvisioningStyle = Automatic;
TestTargetID = 5F5A1D241E8DB0F300BCE63D;
};
5F5A1D431E8DB0F300BCE63D = {
CreatedOnToolsVersion = 8.3;
DevelopmentTeam = 28CC8SCVUN;
ProvisioningStyle = Automatic;
TestTargetID = 5F5A1D241E8DB0F300BCE63D;
};
};
};
buildConfigurationList = 5F5A1D201E8DB0F300BCE63D /* Build configuration list for PBXProject "My Mind" */;
compatibilityVersion = "Xcode 8.0";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 5F5A1D1C1E8DB0F300BCE63D;
productRefGroup = 5F5A1D261E8DB0F300BCE63D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
5F5A1D241E8DB0F300BCE63D /* My Mind */,
5F5A1D381E8DB0F300BCE63D /* My MindTests */,
5F5A1D431E8DB0F300BCE63D /* My MindUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
5F5A1D231E8DB0F300BCE63D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5FF72FF91E8DDF6D00FFD64D /* Login.storyboard in Resources */,
5F5A1D331E8DB0F300BCE63D /* LaunchScreen.storyboard in Resources */,
5FF972241E8DBC27007AE280 /* Images.xcassets in Resources */,
5F5A1D571E8DB24C00BCE63D /* Sdk in Resources */,
5F5A1D301E8DB0F300BCE63D /* Assets.xcassets in Resources */,
5FF72FF71E8DDF4100FFD64D /* OnBoarding.storyboard in Resources */,
5F5A1D2E1E8DB0F300BCE63D /* Main.storyboard in Resources */,
5FF72FF31E8DDECA00FFD64D /* UserPools.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D371E8DB0F300BCE63D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D421E8DB0F300BCE63D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
5F5A1D661E8DB27100BCE63D /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "bash \"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/AWSCore.framework/strip-frameworks.sh\"";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
5F5A1D211E8DB0F300BCE63D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5FF9721B1E8DBA98007AE280 /* OnBoardingController.swift in Sources */,
5FF9721E1E8DBAC3007AE280 /* WelcomeScreenOne.swift in Sources */,
5FF972221E8DBAE1007AE280 /* WelcomeScreenThree.swift in Sources */,
5FF9722A1E8DCE83007AE280 /* LoginView.swift in Sources */,
5FF72FEF1E8DDECA00FFD64D /* SignInViewControllerExtensions.swift in Sources */,
5FF72FF21E8DDECA00FFD64D /* UserPoolNewPasswordViewController.swift in Sources */,
5FF72FF01E8DDECA00FFD64D /* UserPoolForgotPasswordViewController.swift in Sources */,
5FF72FF51E8DDECA00FFD64D /* UserPoolSignUpViewController.swift in Sources */,
5FF72FF11E8DDECA00FFD64D /* UserPoolMFAViewController.swift in Sources */,
5F5A1D6B1E8DB2A300BCE63D /* AWSConfiguration.swift in Sources */,
5FF72FF41E8DDECA00FFD64D /* UserPoolSignUpConfirmationViewController.swift in Sources */,
5F5A1D6C1E8DB2A300BCE63D /* AWSMobileClient.swift in Sources */,
5FF9722D1E8DCEA7007AE280 /* SignUpView.swift in Sources */,
5F5A1D291E8DB0F300BCE63D /* AppDelegate.swift in Sources */,
5FF972281E8DC9F3007AE280 /* ForumView.swift in Sources */,
5FF972201E8DBAD9007AE280 /* WelcomeScreenTwo.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D351E8DB0F300BCE63D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5F5A1D3E1E8DB0F300BCE63D /* My_MindTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
5F5A1D401E8DB0F300BCE63D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5F5A1D491E8DB0F300BCE63D /* My_MindUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
5F5A1D3B1E8DB0F300BCE63D /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 5F5A1D241E8DB0F300BCE63D /* My Mind */;
targetProxy = 5F5A1D3A1E8DB0F300BCE63D /* PBXContainerItemProxy */;
};
5F5A1D461E8DB0F300BCE63D /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 5F5A1D241E8DB0F300BCE63D /* My Mind */;
targetProxy = 5F5A1D451E8DB0F300BCE63D /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
5F5A1D2C1E8DB0F300BCE63D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
5F5A1D2D1E8DB0F300BCE63D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
5F5A1D311E8DB0F300BCE63D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
5F5A1D321E8DB0F300BCE63D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
5F5A1D4B1E8DB0F400BCE63D /* 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++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
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 = 10.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
5F5A1D4C1E8DB0F400BCE63D /* 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++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = 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_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
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 = 10.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
5F5A1D4E1E8DB0F400BCE63D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "My Mind/My Mind.entitlements";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 28CC8SCVUN;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/AmazonAws",
"$(SRCROOT)/**",
);
INFOPLIST_FILE = "My Mind/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-Mind";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
5F5A1D4F1E8DB0F400BCE63D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "My Mind/My Mind.entitlements";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 28CC8SCVUN;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/Sdk/Aws",
"$(PROJECT_DIR)/My\\ Mind/AmazonAws",
"$(SRCROOT)/**",
);
INFOPLIST_FILE = "My Mind/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-Mind";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 3.0;
};
name = Release;
};
5F5A1D511E8DB0F400BCE63D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = 28CC8SCVUN;
INFOPLIST_FILE = "My MindTests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-MindTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/My Mind.app/My Mind";
};
name = Debug;
};
5F5A1D521E8DB0F400BCE63D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
DEVELOPMENT_TEAM = 28CC8SCVUN;
INFOPLIST_FILE = "My MindTests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-MindTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/My Mind.app/My Mind";
};
name = Release;
};
5F5A1D541E8DB0F400BCE63D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
DEVELOPMENT_TEAM = 28CC8SCVUN;
INFOPLIST_FILE = "My MindUITests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-MindUITests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_TARGET_NAME = "My Mind";
};
name = Debug;
};
5F5A1D551E8DB0F400BCE63D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
DEVELOPMENT_TEAM = 28CC8SCVUN;
INFOPLIST_FILE = "My MindUITests/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "ADCMNetworks.My-MindUITests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
TEST_TARGET_NAME = "My Mind";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
5F5A1D201E8DB0F300BCE63D /* Build configuration list for PBXProject "My Mind" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5F5A1D4B1E8DB0F400BCE63D /* Debug */,
5F5A1D4C1E8DB0F400BCE63D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5F5A1D4D1E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My Mind" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5F5A1D4E1E8DB0F400BCE63D /* Debug */,
5F5A1D4F1E8DB0F400BCE63D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5F5A1D501E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My MindTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5F5A1D511E8DB0F400BCE63D /* Debug */,
5F5A1D521E8DB0F400BCE63D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5F5A1D531E8DB0F400BCE63D /* Build configuration list for PBXNativeTarget "My MindUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5F5A1D541E8DB0F400BCE63D /* Debug */,
5F5A1D551E8DB0F400BCE63D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 5F5A1D1D1E8DB0F300BCE63D /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:My Mind.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>Default</string>
<key>IssueFilterStyle</key>
<string>ShowActiveSchemeOnly</string>
<key>LiveSourceIssuesEnabled</key>
<true/>
</dict>
</plist>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>

View File

@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D241E8DB0F300BCE63D"
BuildableName = "My Mind.app"
BlueprintName = "My Mind"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D381E8DB0F300BCE63D"
BuildableName = "My MindTests.xctest"
BlueprintName = "My MindTests"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D431E8DB0F300BCE63D"
BuildableName = "My MindUITests.xctest"
BlueprintName = "My MindUITests"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D241E8DB0F300BCE63D"
BuildableName = "My Mind.app"
BlueprintName = "My Mind"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D241E8DB0F300BCE63D"
BuildableName = "My Mind.app"
BlueprintName = "My Mind"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5F5A1D241E8DB0F300BCE63D"
BuildableName = "My Mind.app"
BlueprintName = "My Mind"
ReferencedContainer = "container:My Mind.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>My Mind.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>5F5A1D241E8DB0F300BCE63D</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>5F5A1D381E8DB0F300BCE63D</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>5F5A1D431E8DB0F300BCE63D</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,28 @@
//
// AWSConfiguration.swift
// My Mind
//
//
// Copyright 2017 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
// Source code generated from Amazon Mobile Hub
//
//
import AWSCore
// Cognito User Pools Identity Id
let AWSCognitoUserPoolId: String = "eu-west-2_GyTxJ1kUG"
// Cognito User Pools App Client Id
let AWSCognitoUserPoolAppClientId: String = "2qlv4rkq1ea4sg0v6loen29lph"
// Cognito User Pools Region
let AWSCognitoUserPoolRegion: AWSRegionType = .EUWest2
// Cognito User Pools Client Secret
let AWSCognitoUserPoolClientSecret: String = "19uu3s8skbcoqcdn4dhj6q180q31laf8cr4bopd4k36t8k01jn3j"

View File

@@ -0,0 +1,114 @@
//
// AWSMobileClient.swift
// My Mind
//
//
// Copyright 2017 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
// Source code generated from Amazon Mobile Hub
//
//
import Foundation
import UIKit
import AWSCore
import AWSMobileHubHelper
import AWSPinpoint
/**
* AWSMobileClient is a singleton that bootstraps the app. It creates an identity manager to establish the user identity with Amazon Cognito.
*/
class AWSMobileClient: NSObject {
// Shared instance of this class
static let sharedInstance = AWSMobileClient()
fileprivate var isInitialized: Bool
//Used for checking whether Push Notification is enabled in Amazon Pinpoint
static let remoteNotificationKey = "RemoteNotification"
//AWSPinpoint client - Used for Pinpoint Analytics and Pinpoint Targeting
var pinpoint: AWSPinpoint?
fileprivate override init() {
isInitialized = false
super.init()
}
deinit {
// Should never be called
print("Mobile Client deinitialized. This should not happen.")
}
/**
* Configure third-party services from application delegate with url, application
* that called this provider, and any annotation info.
*
* - parameter application: instance from application delegate.
* - parameter url: called from application delegate.
* - parameter sourceApplication: that triggered this call.
* - parameter annotation: from application delegate.
* - returns: true if call was handled by this component
*/
func withApplication(_ application: UIApplication, withURL url: URL, withSourceApplication sourceApplication: String?, withAnnotation annotation: Any) -> Bool {
print("withApplication:withURL")
AWSIdentityManager.default().interceptApplication(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
if (!isInitialized) {
isInitialized = true
}
return false;
}
/**
* Performs any additional activation steps required of the third party services
* e.g. Facebook
*
* - parameter application: from application delegate.
*/
func applicationDidBecomeActive(_ application: UIApplication) {
print("applicationDidBecomeActive:")
}
/**
* Configures all the enabled AWS services from application delegate with options.
*
* - parameter application: instance from application delegate.
* - parameter launchOptions: from application delegate.
*/
func didFinishLaunching(_ application: UIApplication, withOptions launchOptions: [AnyHashable: Any]?) -> Bool {
print("didFinishLaunching:")
// Register the sign in provider instances with their unique identifier
// set up cognito user pool
setupUserPool()
pinpoint = AWSPinpoint(configuration:AWSPinpointConfiguration.defaultPinpointConfiguration(launchOptions: launchOptions))
let didFinishLaunching: Bool = AWSIdentityManager.default().interceptApplication(application, didFinishLaunchingWithOptions: launchOptions)
if (!isInitialized) {
AWSIdentityManager.default().resumeSession(completionHandler: { (result: Any?, error: Error?) in
print("Result: \(String(describing: result)) \n Error:\(String(describing: error))")
}) // If you get an EXC_BAD_ACCESS here in iOS Simulator, then do Simulator -> "Reset Content and Settings..."
// This will clear bad auth tokens stored by other apps with the same bundle ID.
isInitialized = true
}
return didFinishLaunching
}
func setupUserPool() {
// register your user pool configuration
AWSCognitoUserPoolsSignInProvider.setupUserPool(withId: AWSCognitoUserPoolId, cognitoIdentityUserPoolAppClientId: AWSCognitoUserPoolAppClientId, cognitoIdentityUserPoolAppClientSecret: AWSCognitoUserPoolClientSecret, region: AWSCognitoUserPoolRegion)
AWSSignInProviderFactory.sharedInstance().register(signInProvider: AWSCognitoUserPoolsSignInProvider.sharedInstance(), forKey:AWSCognitoUserPoolsSignInProviderKey)
}
}

View File

@@ -0,0 +1,77 @@
//
// AWSAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
extern NSString * _Nonnull const AWSAuthorizationManagerErrorDomain;
typedef NS_ENUM(NSUInteger, AWSAuthorizationManagerError) {
AWSAuthorizationErrorUserCancelledFlow,
AWSAuthorizationErrorConnectionError,
AWSAuthorizationErrorFailedToRetrieveAccessToken,
AWSAuthorizationErrorMissingRequiredParameter,
};
@interface AWSAuthorizationManager : NSObject
/**
* Singleton used to authorize user during OAuth1.0, 2.0, other flows.
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Utility method that constructs form encoded portion of url
* i.e. @{@"grant": @"code", @"client_id": @"abc123"} -> @"grant=code&client_id=abc123&"
*
* @return the string representation of a form
*/
+ (NSString * _Nonnull)constructURIWithParameters:(NSDictionary * _Nonnull)params;
/**
* Utility method that constructs dictionary from simple form encoded url
* i.e. @"grant=code&client_id=abc123" -> @{@"grant": @"code", @"client_id": @"abc123"}
*
* @return the dictionary representation of a url encoded form
*/
+ (NSDictionary * _Nonnull)constructParametersWithURI:(NSString * _Nonnull)formString;
/**
* Starts the authorization flow. Should be called from main thread.
*
* @param authorizeViewController The view controller that user sees right before they should see a login screen.
* @param completionHandler The code that will follow after receiving successful login. Executes BEFORE login screen is dismissed.
*/
- (void)authorizeWithView:(UIViewController * _Nonnull)authorizeViewController completionHandler:(void (^ _Nullable)(id _Nullable result, NSError * _Nullable error)) completionHandler;
/**
* This method should be placed in the AppDelegate to listen for the redirect URI.
*
* - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
*
* @param url The url that the authorization flow gives back.
* @return YES if the url matches an expected response, NO if it is not expected.
*/
- (BOOL)handleURL:(NSURL * _Nullable)url;
/**
* @return the accessToken used for API calls
*/
- (NSString * _Nullable)getAccessToken;
/**
* Starts the logout flow. Should be called from main thread.
*
* @param logoutViewController The view controller that user sees right before they should see a logout indication.
* @param completionHandler The code that will follow after receiving successful login. Executes BEFORE login screen is dismissed.
*/
- (void)logout:(UIViewController * _Nonnull)logoutViewController completionHandler:(void (^ _Nullable)(id _Nullable result, NSError * _Nullable error)) completionHandler;
@end

View File

@@ -0,0 +1,140 @@
//
// AWSCloudLogic.h
//
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <AWSCore/AWSCore.h>
NS_ASSUME_NONNULL_BEGIN
/**
* Cloud logic helper singleton class that provides convenient interface to invoke
* AWS Lambda functions and handle the results asynchronously.
* Requires the AWSLambda framework of AWSiOSSDK.
*/
@interface AWSCloudLogic : NSObject
/**
Returns the default Cloud Logic singleton instance configured using the information provided in `Info.plist` file.
*Swift*
let cloudLogic = AWSCloudLogic.default()
*Objective-C*
AWSCloudLogic *cloudLogic = [AWSCloudLogic defaultCloudLogic];
*/
+ (instancetype)defaultCloudLogic;
/**
Creates a helper client for `AWSCloud` for specified configuration with mentioned key.
Use this method only if you require a helper client with specific configuration.
For example, set the configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSCloudLogic.register(with: configuration, forKey: "USWest2CloudLogic")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
[AWSCloudLogic registerCloudLogicWithConfiguration:configuration
forKey:@"USWest2CloudLogic"];
Then call the following to get the helper client:
*Swift*
let cloudLogic = AWSCloudLogic(forKey: "USWest2CloudLogic")
*Objective-C*
AWSCloudLogic *cloudLogic = [AWSCloudLogic cloudLogicForKey:@"USWest2CloudLogic"];
@warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
@param serviceConfiguration AWSServiceConfiguration object for the cloud logic.
@param key A string to identify the helper client.
*/
+ (void)registerCloudLogicWithConfiguration:(AWSServiceConfiguration *)serviceConfiguration
forKey:(NSString *)key;
/**
Retrieves the helper client associated with the key. You need to call `+ registercloudLogicWithConfiguration:` before invoking this method. If `+ registercloudLogicWithConfiguration:` has not been called in advance or the key does not exist, this method returns `nil`.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSCloudLogic.registercloudLogicWithConfiguration(configuration, forKey: "USWest2cloudLogic")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
[AWSCloudLogic registercloudLogicWithConfiguration:configuration
forKey:@"USWest2cloudLogic"];
Then call the following to get the helper client:
*Swift*
let CloudLogic = AWSCloudLogic(forKey: "USWest2cloudLogic")
*Objective-C*
AWSCloudLogic *CloudLogic = [AWSCloudLogic CloudLogicForKey:@"USWest2cloudLogic"];
@param key A string to identify the helper client.
@return An instance of AWSCloudLogic for specified key.
*/
+ (instancetype)CloudLogicForKey:(NSString *)key;
/**
Removes the helper client associated with the key and release it.
*Swift*
AWSCloudLogic.remove(forKey: "USWest2CloudLogic")
*Objective-C*
[AWSCloudLogic removeCloudLogicForKey:@"USWest2CloudLogic"];
@warning Before calling this method, make sure no method is running on this client.
@param key A string to identify the helper client.
*/
+ (void)removeCloudLogicForKey:(NSString *)key;
/**
Invokes the specified AWS Lambda function and passes the results and possible error back to the application asynchronously.
@param name AWS Lambda function name, e.g., hello-world
@param parameters The object from which to generate JSON request data. Can be `nil`.
@param completionBlock handler for results from the function
*/
- (void)invokeFunction:(NSString *)name
withParameters:(nullable id)parameters
completionBlock:(void (^)(id _Nullable result, NSError * _Nullable error))completionBlock;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,86 @@
//
// AWSCognitoUserPoolsSignInProvider.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString *const AWSCognitoUserPoolsSignInProviderKey;
@protocol AWSCognitoUserPoolsSignInHandler
/**
* This method is called when `loginWithSignInProvider` is called by `AWSIdentityManager`.
* This method should handle the input from the user and set the `taskCompletionSournce` result required by Cognito Idp SDK.
*/
- (void)handleUserPoolSignInFlowStart;
@end
/**
* `AWSCognitoUserPoolsSignInProvider` adopts the `AWSSignInProvider` protocol.
*
* It works with the AWS Cognito User Pools SDK internally.
*/
@interface AWSCognitoUserPoolsSignInProvider : NSObject <AWSSignInProvider>
/**
* Registers the cognito pool with specified configuration. The pool object can be accessed by using the `CognitoIdentityUserPoolForKey:` method using `AWSCognitoUserPoolsSignInProviderKey` as the identifier key.
*
* @param cognitoIdentityUserPoolId The Cognito Identity User Pool Id
* @param cognitoIdentityUserPoolAppClientId The Cognito Identity User Pool Client Id
* @param cognitoIdentityUserPoolAppClientSecret The Cognito Identity User Pool Client Secret
* @param region The Cognito Identity User Pool Service Region
*/
+ (void)setupUserPoolWithId:(NSString *)cognitoIdentityUserPoolId
cognitoIdentityUserPoolAppClientId:(NSString *)cognitoIdentityUserPoolAppClientId
cognitoIdentityUserPoolAppClientSecret:(NSString *)cognitoIdentityUserPoolAppClientSecret
region:(AWSRegionType)region;
/**
Fetches the shared instance for AWSCognitoUserPoolsSignInProvider. The method `setupUserPoolWithId:cognitoIdentityUserPoolAppClientId:cognitoIdentityUserPoolAppClientSecret:region` has to be called once before accessing the shared instance.
@return the single instance of AWSCognitoUserPoolsSignInProvider
*/
+ (instancetype)sharedInstance;
/**
* Set the instance of the class adopting the `AWSCognitoIdentityInteractiveAuthenticationDelegate` protocol of Cognito Idp SDK.
*
* @param interactiveAuthDelegate A class adopting the `AWSCognitoIdentityInteractiveAuthenticationDelegate` protocol
*/
- (void)setInteractiveAuthDelegate:(id)interactiveAuthDelegate;
/**
* Returns the status of the current user pool user.
*
* @return `YES` if the user is signed in.
*/
- (BOOL)isLoggedIn;
/**
* Sets the userName value of the signed-in user into a persistent store.
* Should be called on a successful login to set the user name which is used by `AWSIdentityManager`.
*
* @param userName the user name of the signed-in user
*/
- (void)setUserName:(NSString *)userName;
/**
* Sets the imageURL value of the signed-in user into a persistent store.
* Should be called on a successful login to set the user name which is used by `AWSIdentityManager`.
*
* @param imageURL the image URL for a picture of the signed-in user
*/
- (void)setImageURL:(NSURL *)imageURL;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,601 @@
//
// AWSContentManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import <AWSCore/AWSCore.h>
NS_ASSUME_NONNULL_BEGIN
/**
* The error domain for `AWSContentManager`.
*/
FOUNDATION_EXPORT NSString *const AWSContentManagerErrorDomain;
/**
* The error codes for `AWSContentManager`.
*/
typedef NS_ENUM(NSInteger, AWSContentManagerErrorType){
/**
* Generic error.
*/
AWSContentManagerErrorTypeUnknown,
/**
* Initiated a transfer on a content that is already running.
*/
AWSContentManagerErrorTypeTransferAlreadyInProgress,
/**
* Initiated a transfer on a directory. Directories cannot be downloaded.
*/
AWSContentManagerErrorTypeDirectoryCannotBeDownloaded,
/**
* A server returned a client exception (e.g. HTTP status code 4xx).
*/
AWSContentManagerErrorTypeClientException,
/**
* A server returned a service exception (e.g. HTTP status code 5xx).
*/
AWSContentManagerErrorTypeServiceException,
};
@class AWSContent;
@class AWSContentManagerConfiguration;
/**
* The Content Manager manages caching and transfer of files from Amazon S3 and/or
* Amazon CloudFront. It lists files directly using S3, regardless of whether
* Amazon CloudFront is in use. It maintains a size-limited cache for files stored
* on the local device and provides operations to set the cache size limit and
* clear files from the local cache. It serves as the application's interface into
* the Content Delivery feature. Content Manager instances are also used internally
* for the User Files feature.
* Requires the AWSS3 framework of AWSiOSSDK.
*/
@interface AWSContentManager : NSObject
/**
* Local cache size limit in bytes.
*/
@property (nonatomic, assign) NSUInteger maxCacheSize;
/**
* Local cache bytes used.
*/
@property (nonatomic, readonly) NSUInteger cachedUsedSize;
/**
* Number of bytes pinned in the cache. Pinned items do not count towards the
* cache size limit.
*/
@property (nonatomic, readonly) NSUInteger pinnedSize;
/**
Returns the default Content Manager singleton instance configured using the information provided in `Info.plist` file.
*Swift*
let contentManager = AWSContentManager.default()
*Objective-C*
AWSContentManager *contentManager = [AWSContentManager defaultContentManager];
*/
+ (instancetype)defaultContentManager;
/**
Creates a helper client for AWSContentManager for specified configuration with mentioned key.
Use this method only if you require a helper client with specific configuration.
For example, set the configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let contentManagerConfiguration = AWSContentManagerConfiguration(bucketName: "myBucket")
AWSContentManager.register(with: contentManagerConfiguration, forKey: "defaultManager")
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSContentManagerConfiguration *contentManagerConfiguration = [[AWSContentManager alloc] initWithBucketName:@"myBucketName"];
[AWSContentManager registerUserFileManagerWithConfiguration:contentManagerConfiguration
forKey:@"defaultManager"];
return YES;
}
Then call the following to get the helper client:
*Swift*
let contentManager = AWSContentManager(forKey: "defaultManager")
*Objective-C*
AWSContentManager *contentManager = [AWSContentManager contentManagerForKey:@"defaultManager"];
@warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
@param contentManagerConfiguration AWSContentManagerConfiguration object for the manager.
@param key A string to identify the helper client.
*/
+ (void)registerContentManagerWithConfiguration:(AWSContentManagerConfiguration *)contentManagerConfiguration
forKey:(NSString *)key;
/**
Retrieves the helper client associated with the key. You need to call `+ registerContentManagerWithConfiguration:forKey:` before invoking this method. If `+ registerContentManagerWithConfiguration:forKey:` has not been called in advance or the key does not exist, this method returns `nil`.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let contentManagerConfiguration = AWSContentManagerConfiguration(bucketName: "myBucket")
AWSContentManager.register(with: contentManagerConfiguration, forKey: "defaultManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSContentManagerConfiguration *contentManagerConfiguration = [[AWSContentManager alloc] initWithBucketName:@"myBucketName"];
[AWSContentManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"defaultManager"];
Then call the following to get the helper client:
*Swift*
let ContentManager = AWSContentManager(forKey: "defaultManager")
*Objective-C*
AWSContentManager *ContentManager = [AWSContentManager ContentManagerForKey:@"defaultManager"];
@param key A string to identify the helper client.
@return An instance of AWSUserFileManager for specified key.
*/
+ (instancetype)ContentManagerForKey:(NSString *)key;
/**
Removes the helper client associated with the key and release it.
*Swift*
AWSContentManager.remove(forKey: "defaultManager")
*Objective-C*
[AWSContentManager removeContentManagerForKey:@"defaultManager"];
@warning Before calling this method, make sure no method is running on this client.
@param key A string to identify the helper client.
*/
+ (void)removeContentManagerForKey:(NSString *)key;
/**
Loads the list of available files in the Amazon S3 bucket under the folder specified by the prefix parameter. Results are paged with page size of 100 files. The marker parameter value returned from a call should be passed to a subsequent call, in order to page through the list of files.
*Swift*
let contentManager = AWSContentManager(forKey: "defaultManager")
manager.listAvailableContents(withPrefix: "prefix", marker: marker, completionHandler: {(contents: [AWSContent]?, nextMarker: String?, error: Error?) -> Void in
if let error = error {
print("Failed to load the list of contents. \(error)")
// handle content load failure here
}
if let contents = contents, contents.count > 0 {
// Use marker and contents here
}
// handle successful result here
})
*Objective-C*
AWSContentManager *contentManager = [AWSContentManager contentManagerForKey:@"defaultManager"];
[contentManager
listAvailableContentsWithPrefix:@"prefix"
marker:marker
completionHandler:^(NSArray *contents, NSString *nextMarker, NSError *error) {
if (error) {
NSLog(@"Failed to load the list of contents. %@", error);
// handle content load failure here
}
if (contents.count > 0) {
// Use marker and contents here
}
// handle successful result here
}];
@param prefix Limits the response to keys that begin with the specified prefix.
@param marker The key to start with when listing objects in a bucket. It loads object metadata from the S3 bucket in alphabetical order, starting with the key after the marker in order.
@param completionHandler The completion handler that returns the results and error.
*/
- (void)listAvailableContentsWithPrefix:(nullable NSString *)prefix
marker:(nullable NSString *)marker
completionHandler:(void (^)(NSArray<AWSContent *> * _Nullable contents, NSString * _Nullable marker, NSError * _Nullable error))completionHandler;
/**
Returns a list of contents that fit in the available cache. The list is sorted by last modified date on the S3 bucket, the most recently modified one first.
*Swift*
let contentManager = AWSContentManager(forKey: "defaultManager")
contentManager.listRecentContents(withPrefix: "prefix", completionHandler: {(result: [AWSContent]?, error: Error?) -> Void in
if let error = error {
print("Failed to load the list of recent contents. \(error)")
// Handle error here
}
if let downloadResult: [AWSContent] = result {
// Handle successful result here
for content: AWSContent in downloadResult {
// Handle each of the item in the result
}
}
})
*Objective-C*
AWSContentManager *contentManager = [AWSContentManager contentManagerForKey:@"defaultManager"];
[contentManager listRecentContentsWithPrefix:@"prefix"
completionHandler:^(NSArray<AWSContent *> * result, NSError *error) {
if (error) {
NSLog(@"%@", error.description);
}
for (AWSContent *content in result) {
// Handle each of the item in result
}
}];
@param prefix Limits the response to keys that begin with the specified prefix.
@param completionHandler The completion handler that returns the result and error.
*/
- (void)listRecentContentsWithPrefix:(nullable NSString *)prefix
completionHandler:(void (^)(NSArray<AWSContent *> * _Nullable result, NSError * _Nullable error))completionHandler;
/**
* Removes all cached contents. It does not modify the remote objects.
*/
- (void)clearCache;
/**
Returns an instance of `AWSContent` for a given key. You can use this method to download content without first load its metadata using `- loadContentMetadataWithPrefix:marker:completionHandler:`.
@param key The key of the content.
@return An instance of `AWSContent`.
*/
- (AWSContent *)contentWithKey:(NSString *)key;
@end
/**
* Status of content item download.
*/
typedef NS_ENUM(NSInteger, AWSContentStatusType){
/**
* Unknown status. This should not happen.
*/
AWSContentStatusTypeUnknown,
/**
* Has been created but has not started running yet.
*/
AWSContentStatusTypeNotStarted,
/**
* Is running and transferring data from/to the remote server.
*/
AWSContentStatusTypeRunning,
/**
* Has completed transferring data from/to the remote server.
*/
AWSContentStatusTypeCompleted,
/**
* Has failed to transfer data from/to the remote server.
*/
AWSContentStatusTypeFailed,
};
/**
* Policy to use when downloading a file.
*/
typedef NS_ENUM(NSInteger, AWSContentDownloadType){
/**
* Downalods a file if not cached locally.
*/
AWSContentDownloadTypeIfNotCached,
/**
* Downloads a file if not cached locally or the remote version is newer than the locally cached version.
*/
AWSContentDownloadTypeIfNewerExists,
/**
* Downloads a file and overwrite it if the local cache exists.
*/
AWSContentDownloadTypeAlways,
};
/**
* The content object that holds the cached data and its metadata.
*/
@interface AWSContent : NSObject
/**
* The Amazon S3 key associated with the content.
*/
@property (nonatomic, readonly) NSString *key;
/**
* Shows if the content is a directory.
*/
@property (nonatomic, readonly, getter=isDirectory) BOOL directory;
/**
* The status of the content.
*/
@property (nonatomic, readonly) AWSContentStatusType status;
/**
* The transfer progress.
*/
@property (nonatomic, readonly) NSProgress *progress;
/**
* The last known size reported by the Amazon S3. May be different from the actual size if the file was modified on the server.
*/
@property (nonatomic, readonly) NSUInteger knownRemoteByteCount;
/**
* The last known last modified date reported by the Amazon S3. May be different from the actual last modified date if the file was modified on the server.
*/
@property (nonatomic, readonly) NSDate * _Nullable knownRemoteLastModifiedDate;
/**
* The cached data object.
*/
@property (nonatomic, readonly) NSData *cachedData;
/**
* The cached data size.
*/
@property (nonatomic, readonly) NSUInteger fileSize;
/**
* The date the cached data was downloaded.
*/
@property (nonatomic, readonly) NSDate * _Nullable downloadedDate;
/**
* Wheather the content is locally cached.
*/
@property (nonatomic, readonly, getter=isCached) BOOL cached;
/**
* Weather the content is pinned. Pinned objects are not subject to the content cache limit.
*/
@property (nonatomic, readonly, getter=isPinned) BOOL pinned;
/**
Downloads a file from the remote server.
*Swift*
func downloadContent(content: AWSContent, pinOnCompletion: Bool) {
content.download(with: .ifNewerExists, pinOnCompletion: pinOnCompletion, progressBlock: { (content: AWSContent, content: Progress) in
// Handle progress feedback
}, completionHandler: { (content: AWSContent?, data: Data?, error: Error?) in
if let error = error {
print("Failed to download a content from a server.)")
// Handle error here
return
}
// Handle successful download here
})
}
*Objective-C*
- (void)downloadContent:(AWSContent *)content
pinOnCompletion:(BOOL)pinOnCompletion {
[content downloadWithDownloadType:AWSContentDownloadTypeIfNewerExists
pinOnCompletion:pinOnCompletion
progressBlock:^(AWSContent *content, NSProgress *progress) {
// Handle progress feedback
}
completionHandler:^(AWSContent *content, NSData *data, NSError *error) {
if (error) {
NSLog(@"Failed to download a content from a server. %@", error);
// Handle error here
return;
}
// Handle successful download here
}];
}
@param loadingType Specifies the loading behavior for downloading data.
@param pinOnCompletion When set to `YES`, it pins the content on completion. You can download a content that does not fit in the content cache by setting it to `YES`.
@param progressBlock The progress feedback block.
@param completionHandler The completion handler block.
*/
- (void)downloadWithDownloadType:(AWSContentDownloadType)loadingType
pinOnCompletion:(BOOL)pinOnCompletion
progressBlock:(void(^ _Nullable)(AWSContent *content, NSProgress *progress))progressBlock
completionHandler:(void(^)(AWSContent * _Nullable content, NSData * _Nullable data, NSError * _Nullable error))completionHandler;
/**
Gets Presigned URL or the Cloud Front URL for the file.
*Swift*
func getContentURL(content: AWSContent) {
content.getRemoteFileURLWithCompletionHandler({ (url: URL?, error: Error?) -> Void in
guard let url = url else {
NSLog("Error getting URL for file. \(error)")
return
}
// Handle successfully generated URL here
})
}
*Objective-C*
- (void)getContentURL:(AWSContent *)content {
[content getRemoteFileURLWithCompletionHandler:^(NSURL *url, NSError *error) {
if (error) {
NSLog(@"Failed to get a valid URL from a server. %@", error);
}
// handle successfully generated URL here
}];
}
@param completionHandler The completion handler block.
*/
- (void)getRemoteFileURLWithCompletionHandler:(void(^)(NSURL * _Nullable url, NSError * _Nullable error))completionHandler;
/**
* Pins the locally cached object. Pinned objects are not subject to the content cache limit.
*/
- (void)pin;
/**
* Unpins the pinned object. It may purge the content cache if the content cache does not have enough available space to fit the unpinned data.
*/
- (void)unPin;
/**
* Removes locally cached data regardless of the pinning status.
*/
- (void)removeLocal;
@end
/**
* `AWSContentManagerConfiguration` is the configuration object for `AWSContentManager` class.
*/
@interface AWSContentManagerConfiguration: NSObject
@property (nonatomic, readonly) AWSServiceConfiguration *serviceConfiguration;
@property (nonatomic, readonly) NSString *bucketName;
@property (nonatomic, readonly, nullable) NSString *cloudFrontURL;
/**
Returns an instance of `AWSContentManagerConfiguration` using the default service configuration and specified bucket name. Use this as the configuration object for AWSContentManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let contentManagerConfiguration = AWSContentManagerConfiguration(bucketName: "myBucket")
AWSContentManager.register(with: contentManagerConfiguration, forKey: "defaultManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSContentManagerConfiguration *contentManagerConfiguration = [[AWSContentManager alloc] initWithBucketName:@"myBucketName"];
[AWSContentManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"defaultManager"];
@param bucketName Name of the bucket for manager
@return an instance of AWSUserFileManagerConfiguration
*/
- (instancetype)initWithBucketName:(NSString *)bucketName;
/**
Returns an instance of`AWSContentManagerConfiguration` using the specified bucket name, CloudFront URL and the default service configuration. Use this as the configuration object for AWSContentManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration;
let contentManagerConfiguration = AWSContentManagerConfiguration(bucketName: "myBucket", cloudFrontURL: "https:/a.b.myurl")
AWSContentManager.register(with: contentManagerConfiguration, forKey: "defaultManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSContentManagerConfiguration *contentManagerConfiguration = [[AWSContentManager alloc] initWithBucketName:@"myBucketName"
cloudFrontURL:@"https:/a.b.myurl"];
[AWSContentManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"defaultManager"];
@param bucketName Name of the bucket for manager
@param cloudFrontURL CloudFront URL for the bucket if enabled; nil otherwise
@return an instance of AWSUserFileManagerConfiguration
*/
- (instancetype)initWithBucketName:(NSString *)bucketName
cloudFrontURL:(nullable NSString *)cloudFrontURL;
/**
Returns an instance of `AWSContentManagerConfiguration` using the specified bucket name, CloudFront URL and service configuration. Use this as the configuration object for AWSContentManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
let contentManagerConfiguration = AWSContentManagerConfiguration(bucketName: "myBucket", cloudFrontURL: "https:/a.b.myurl", serviceConfiguration: configuration)
AWSContentManager.register(with: contentManagerConfiguration, forKey: "USWest2BucketContentManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSContentManagerConfiguration *contentManagerConfiguration = [[AWSContentManager alloc] initWithBucketName:@"myBucketName"
cloudFrontURL:@"https:/a.b.myurl"
serviceConfiguration:configuration];
[AWSContentManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"USWest2BucketContentManager"];
@param bucketName Name of the bucket for manager
@param cloudFrontURL CloudFront URL for the bucket if enabled; nil otherwise
@param serviceConfiguration AWSServiceConfiguration for the bucket; nil for default configuration
@return an instance of AWSUserFileManagerConfiguration
*/
- (instancetype)initWithBucketName:(NSString *)bucketName
cloudFrontURL:(nullable NSString *)cloudFrontURL
serviceConfiguration:(nullable AWSServiceConfiguration *)serviceConfiguration;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,55 @@
//
// AWSFacebookSignInProvider.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString *const AWSFacebookSignInProviderKey;
/**
* `AWSFacebookSignInProvider` adopts the `AWSSignInProvider` protocol.
*
* It works with the FacebookLoginSDK internally and uses the Facebook App ID specified in the info.plist file.
*/
@interface AWSFacebookSignInProvider : NSObject <AWSSignInProvider>
/**
Fetches the singleton instance of AWSFacebookSignInProvider.
@return the singleton instance of AWSFacebookSignInProvider
*/
+ (instancetype)sharedInstance;
/**
Sets the login behavior of the Facebook SignIn SDK.
Choices are listed in enum FBSDKLoginBehavior.
Default behaviors for iOS:
9+ SFSafariViewController used.
8 WebViewController used.
@loginBehavior a FBSDKLoginBehavior enum entry
*/
- (void)setLoginBehavior:(NSUInteger)loginBehavior;
/**
Sets the permissions requested during login.
Default behavior is no permissions are required.
*/
- (void)setPermissions:(NSArray *)permissions;
/**
Sets the ViewController used for Facebook SignIn.
Defaults to nil and handled by Facebook SDK.
*/
- (void)setViewControllerForFacebookSignIn:(UIViewController *)signInViewController;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,44 @@
//
// AWSGoogleSignInProvider.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString *const AWSGoogleSignInProviderKey;
/**
* `AWSGoogleSignInProvider` adopts the `AWSSignInProvider` protocol.
*
* It works with the Google Sign In SDK internally and requires the Google Client ID provided by Google.
*/
@interface AWSGoogleSignInProvider : NSObject <AWSSignInProvider>
/**
Fetches the shared instance for AWSGoogleSignInProvider.
@return the single instance of AWSGoogleSignInProvider
*/
+ (instancetype)sharedInstance;
/**
Sets the scopes required by the app during login.
Defaults are openid and profile.
*/
- (void)setScopes:(NSArray *)scopes;
/**
Sets the ViewController used for Google SignIn.
Defaults to rootViewController in keyWindow during signin.
*/
- (void)setViewControllerForGoogleSignIn:(UIViewController *)signInViewController;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,57 @@
//
// AWSHubspotAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSHubspotAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user during OAuth2.0
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow.
*
* @param clientID The client ID provided by Hubspot
* @param portalID The portal ID provided by Hubspot
* @param redirectURI The redirect URI that your app has registered
* i.e. https://mysampleapp.amazonaws.com/hubspot/success
*/
- (void)configureWithClientID:(NSString * _Nonnull)clientID
portalID:(NSString * _Nonnull)portalID
redirectURI:(NSString * _Nonnull)redirectURI;
/**
* Offline Access offline This application can make API requests on behalf of the user when
* the user is offline (not actively using the app). You will receive
* a refresh token when the user authenticates that you can store to
* gain access to a new, valid access token programtically using the
* refresh token method.
* Contacts Read/Write contacts-rw This application reads your contact information, as well as creates
* new contacts, contact lists, and contact properties. It can also
* modify existing contacts, properties, and contact lists.
* Contacts Read-Only contacts-ro This application can read your contact information, as well as
* information about your contact properties and contact lists.
* Blog Read/Write blog-rw This application can read your blog data, including posts and
* comments, as well as create new blog posts and comments.
* Blog Read-Only blog-ro This application can read your blog data, including posts and comments.
* Events Read/Write events-rw This application can read your marketing events, as well as post
* new ones into your HubSpot account.
* Keywords Read/Write keyword-rw This application can read your keyword data, as well as insert new
* ones into your HubSpot account.
*
* @param scope Specify the amount of access the user would like.
* i.e. @"contacts-rw"
* @"contacts-rw+blog-rw"
*/
- (void)setScope:(NSString * _Nonnull)scope;
@end

View File

@@ -0,0 +1,118 @@
//
// AWSIdentityManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <UIKit/UIKit.h>
#import <AWSCore/AWSCore.h>
#import <Foundation/Foundation.h>
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString *const AWSIdentityManagerDidSignInNotification;
FOUNDATION_EXPORT NSString *const AWSIdentityManagerDidSignOutNotification;
@interface AWSIdentityManager : NSObject<AWSIdentityProviderManager>
/**
* Indicates whether the user is signed-in or not.
* @return true if user is signed-in
*/
@property (nonatomic, readonly, getter=isLoggedIn) BOOL loggedIn;
/**
* URL for the user's image, if user is signed-in with a third party identity provider,
* like Facebook or Google.
* @return url of image file, if user is signed-in
*/
@property (nonatomic, readonly, nullable) NSURL * imageURL;
/**
* User name acquired from third party identity provider, such as Facebook or Google.
* @return user name, if user is signed-in
*/
@property (nonatomic, readonly, nullable) NSString * userName;
/**
* Amazon Cognito User Identity ID. This uniquely identifies the user, regardless of
* whether or not the user is signed-in, if User Sign-in is enabled in the project.
* @return unique user identifier
*/
@property (nonatomic, readonly, nullable) NSString *identityId;
/**
* Amazon Cognito Credentials Provider. This is the credential provider used by the Identity Manager.
*
* @return the cognito credentials provider
*/
@property (nonatomic, readonly, strong) AWSCognitoCredentialsProvider *credentialsProvider;
/**
Returns the Identity Manager singleton instance configured using the information provided in `Info.plist` file.
*Swift*
let identityManager = AWSIdentityManager.default()
*Objective-C*
AWSIdentityManager *identityManager = [AWSIdentityManager defaultIdentityManager];
*/
+ (instancetype)defaultIdentityManager;
/**
* Signs the user out of whatever third party identity provider they used to sign in.
* @param completionHandler used to callback application with async operation results
*/
- (void)logoutWithCompletionHandler:(void (^)(id _Nullable result, NSError * _Nullable error))completionHandler;
/**
* Signs the user in with an identity provider. Note that even if User Sign-in is not
* enabled in the project, the user is still signed-in with the Guest type provider.
* @param signInProviderType provider type
* @param completionHandler used to callback application with async operation results
*/
- (void)loginWithSignInProvider:(id<AWSSignInProvider>)signInProvider
completionHandler:(void (^)(id _Nullable result, NSError * _Nullable error))completionHandler NS_SWIFT_NAME(login(signInProvider:completionHandler:));
/**
* Attempts to resume session with the previous sign-in provider.
* @param completionHandler used to callback application with async operation results
*/
- (void)resumeSessionWithCompletionHandler:(void (^)(id _Nullable result, NSError * _Nullable error))completionHandler;
/**
* Passes parameters used to launch the application to the current identity provider. For some
* third party providers, this completes the User Sign-in call flow, which used a browser to
* get information from the user, directly. The current sign-in provider will be set to nil if
* the sign-in provider is not registered using `registerAWSSignInProvider:forKey` method of
* `AWSSignInProviderFactory` class.
* @param application application
* @param launchOptions options used to launch the application
* @return true if this call handled the operation
*/
- (BOOL)interceptApplication:(UIApplication *)application
didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;
/**
* Passes parameters used to launch the application to the current identity provider. For some
* third party providers, this completes the User Sign-in call flow, which used a browser to
* get information from the user, directly.
* @param application application
* @param url url used to open the application
* @param sourceApplication source application
* @param annotation annotation
* @return true if this call handled the operation
*/
- (BOOL)interceptApplication:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(nullable NSString *)sourceApplication
annotation:(id)annotation;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,55 @@
//
// AWSMSDynamicsAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSMSDynamicsAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user during OAuth2.0
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow.
*
* @param clientID The client ID provided by Microsoft Dynamics
* @param redirectURI The redirect URI you provided Microsoft Dynamics
* i.e. https://mysampleapp.amazonaws.com/msdynamics/success
* @param resource The URL of the resource you will access
*/
- (void)configureWithClientID:(NSString * _Nonnull)clientID
redirectURI:(NSString * _Nonnull)redirectURI
resource:(NSString * _Nonnull)resource;
/**
* @param The version of Microsoft Dynamics API you are using.
* The default value is "v8.0"
*/
- (void)setAPIVersion:(NSString * _Nonnull)apiVersion;
/**
* @return The token type. Available after user authorizes app.
* i.e. Bearer
*/
- (NSString * _Nullable)getTokenType;
/**
* @return The resource you will access in Microsoft Dynamics
* with the API version attached to the end
* i.e. https://emhawsapps.crm.dynamics.com
*/
- (NSString * _Nullable)getResourceURL;
/**
* @return the accessToken used for API calls
*/
- (NSString * _Nullable)getAccessToken;
@end

View File

@@ -0,0 +1,59 @@
//
// AWSMarketoAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSMarketoAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user for Marketo
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow.
*
* @param clientID Client ID provided by Salesforce.
* @param redirectURI Should be you're bundle ID or universal URL
* i.e. com.amazonaws.mysampleapp://salesforce/success
* https://mysampleapp.amazonaws.com/success
* @return the singleton
*/
- (void)configureWithIdentityURI:(NSString * _Nonnull)identityURI
restApiURI:(NSString * _Nonnull)restApiURI;
/**
* @param clientID Specify the Client ID provided by Marketo.
* i.e. @"abc123...-abc123...-..."
*/
- (void)setClientID:(NSString * _Nonnull)clientID;
/**
* @param clientSecret Specify the Client Secret provided by Marketo.
* i.e. @"aBc123..."
*/
- (void)setClientSecret:(NSString * _Nonnull)clientSecret;
/**
* @return The access token used for API calls
*/
- (NSString * _Nullable)getAccessToken;
/**
* @return The identity URI used during authorization and API calls
*/
- (NSString * _Nullable)getIdentityURI;
/**
* @return The REST API URI used during authorization and API calls
*/
- (NSString * _Nullable)getRestApiURI;
@end

View File

@@ -0,0 +1,26 @@
//
// AWSMobileHubHelper.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSContentManager.h"
#import "AWSCloudLogic.h"
#import "AWSIdentityManager.h"
#import "AWSPushManager.h"
#import "AWSFacebookSignInProvider.h"
#import "AWSGoogleSignInProvider.h"
#import "AWSUserFileManager.h"
#import "AWSSignInProviderFactory.h"
#import "AWSSAMLSignInProvider.h"
#import "AWSCognitoUserPoolsSignInProvider.h"
#import "AWSAuthorizationManager.h"
#import "AWSSalesforceAuthorizationManager.h"
#import "AWSZendeskAuthorizationManager.h"
#import "AWSMSDynamicsAuthorizationManager.h"
#import "AWSQuickbooksAuthorizationManager.h"
#import "AWSHubspotAuthorizationManager.h"
#import "AWSMarketoAuthorizationManager.h"

View File

@@ -0,0 +1,500 @@
//
// AWSPushManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AWSCore/AWSCore.h>
NS_ASSUME_NONNULL_BEGIN
/**
The error domain for `PushManager`.
*/
FOUNDATION_EXPORT NSString *const AWSPushManagerErrorDomain;
/**
The error code for `AWSPushManagerErrorDomain`.
*/
typedef NS_ENUM(NSInteger, AWSPushManagerErrorType){
/**
An unknown error. This should not happen.
*/
AWSPushManagerErrorTypeUnknown,
/**
The device token returned by the OS is invalid and cannot be processed.
*/
AWSPushManagerErrorTypeInvalidDeviceToken,
/**
Unsubscribe requests failed while disabling `PushManager`.
*/
AWSPushManagerErrorTypeUnsubscribeFailed,
};
@class AWSPushManager;
@class AWSPushTopic;
@class AWSPushManagerConfiguration;
@protocol AWSPushManagerDelegate;
@protocol AWSPushTopicDelegate;
/**
The Push Manager registers the app on the device with Apple Push Notification Service (APNS) and registers the resulting device token in Amazon SNS. The result of this registration process is an Amazon SNS Endpoint ARN, which can be used to send push notifications directly to a specific device. The Push Manager also manages Amazon SNS topic subscriptions, allowing the app to subscribe to Amazon SNS topics, which let you target groups of devices with push notifications. Requires the AWSSNS framework of AWSiOSSDK.
*/
@interface AWSPushManager : NSObject
/**
Indicates if `PushManager` is enabled or disabled.
*/
@property (nonatomic, readonly, getter=isEnabled) BOOL enabled;
/**
The device token returned by iOS.
*/
@property (nonatomic, readonly, nullable) NSString *deviceToken;
/**
The application platform endpoint ARN for Amazon SNS.
*/
@property (nonatomic, readonly, nullable) NSString *endpointARN;
/**
The application platform ARN for the app.
*/
@property (nonatomic, readonly, nullable) NSString *platformARN;
/**
A list of topic ARNs selected during project configuraiton on AWS Mobile Hub from the `Info.plist` file.
If a custom helper client is used, it would contain the topic ARNs specified in AWSPushManagerConfiguration object.
*/
@property (nonatomic, readonly, nullable) NSArray<NSString *> * topicARNs;
/**
The list of `PushTopic`.
*/
@property (nonatomic, readonly) NSArray<AWSPushTopic *> *topics;
/**
The delegate for receiving `PushManager` and `PushTopic` events.
*/
@property (nonatomic, weak) id<AWSPushManagerDelegate, AWSPushTopicDelegate> delegate;
/**
Returns the default Push Manager singleton instance configured using the information provided in `Info.plist` file.
*Swift*
let pushManager = AWSPushManager.default()
*Objective-C*
AWSPushManager *pushManager = [AWSPushManager defaultPushManager];
*/
+ (instancetype)defaultPushManager;
/**
Creates a helper client for `AWSPushManager` for specified configuration with mentioned key.
Use this method only if you require a helper client with specific configuration.
For example, set the configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let pushManagerConfiguration = AWSPushManagerConfiguration(snsPlatformARN: "SNS_PLATFORM_ARN")
AWSPushManager.register(with: pushManagerConfiguration, forKey: "defaultPushManager")
return true
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSPushManagerConfiguration *pushManagerConfiguration = [[AWSPushManager alloc] initWithSNSPlatformARN:@"SNS_PLATFORM_ARN"];
[AWSPushManager registerPushManagerWithConfiguration:pushManagerConfiguration
forKey:@"defaultPushManager"];
return YES;
}
Then call the following to get the helper client:
*Swift*
let pushmanager = AWSPushManager(forKey: "defaultPushManager")
*Objective-C*
AWSPushManager *pushmanager = [AWSPushManager pushManagerForKey:@"defaultPushManager"];
@warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
@param pushManagerConfiguration AWSPushManagerConfiguration object for the manager.
@param key A string to identify the helper client.
*/
+ (void)registerPushManagerWithConfiguration:(AWSPushManagerConfiguration *)pushManagerConfiguration
forKey:(NSString *)key;
/**
Retrieves the helper client associated with the key. You need to call `+ registerPushManagerWithConfiguration:forKey:` before invoking this method. If `+ registerPushManagerWithConfiguration:forKey:` has not been called in advance or the key does not exist, this method returns `nil`.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let pushManagerConfiguration = AWSPushManagerConfiguration(snsPlatformARN: "SNS_PLATFORM_ARN")
AWSPushManager.register(with: pushManagerConfiguration, forKey: "defaultPushManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSPushManagerConfiguration *pushManagerConfiguration = [[AWSPushManager alloc] initWithSNSPlatformARN:@"SNS_PLATFORM_ARN"];
[AWSPushManager registerPushManagerWithConfiguration:pushManagerConfiguration
forKey:@"defaultPushManager"];
Then call the following to get the helper client:
*Swift*
let Pushmanager = AWSPushManager(forKey: "defaultPushManager")
*Objective-C*
AWSPushManager *Pushmanager = [AWSPushManager PushManagerForKey:@"defaultPushManager"];
@param key A string to identify the helper client.
@return An instance of AWSPushManager for specified key.
*/
+ (instancetype)PushManagerForKey:(NSString *)key;
/**
Removes the helper client associated with the key and release it.
*Swift*
AWSPushManager.remove(forKey: "USWest2PushManager")
*Objective-C*
[AWSPushManager removePushManagerForKey:@"USWest2PushManager"];
@warning Before calling this method, make sure no method is running on this client.
@param key A string to identify the helper client.
*/
+ (void)removePushManagerForKey:(NSString *)key;
/**
Initializes `PushManager` with the list of topic ARNs.
@param topicARNs A list of topic ARNs from Amazon SNS. It needs to be an `NSArray` containing only `NSString`.
*/
- (void)registerTopicARNs:(NSArray<NSString *> *)topicARNs;
/**
Returns a topic associated with the specified topic ARN.
@param topicARN A topic ARN from Amazon SNS.
@return The topic with the specified topic ARN.
*/
- (AWSPushTopic *)topicForTopicARN:(NSString *)topicARN;
/**
Initiates the process to enable Push Notifications.
When called for the first time, it asks the user for the permission to enable Push Notifications. If the user decline it, it fails to enable Push Notifications.
On success, it calls `- pushManagerDidRegister:` from `AWSPushManagerDelegate`.
On failure, it calls `- pushManager:didFailToRegisterWithError:` from `AWSPushManagerDelegate`.
*/
- (void)registerForPushNotifications;
/**
Unsubscribes from all subscribed topics, then marks `PushManager` as disabled.
On success, it calls `- pushManagerDidDisable:` from `AWSPushManagerDelegate`.
On failure, it calls `- pushManager:didFailToDisableWithError:` from `AWSPushManagerDelegate`.
*/
- (void)disablePushNotifications;
/**
Intercepts the `- application:didFinishLaunchingWithOptions:` application delegate.
@param application Your singleton app object.
@param launchOptions A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.
*/
- (BOOL)interceptApplication:(UIApplication *)application
didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;
/**
Intercepts the `- application:didRegisterForRemoteNotificationsWithDeviceToken:` application delegate.
@param application The app object that initiated the remote-notification registration process.
@param deviceToken A token that identifies the device to APNs.
*/
- (void)interceptApplication:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
/**
Intercepts the `- application:didFailToRegisterForRemoteNotificationsWithError:` application delegate.
@param application The app object that initiated the remote-notification registration process.
@param error An `NSError` object that encapsulates information why registration did not succeed.
*/
- (void)interceptApplication:(UIApplication *)application
didFailToRegisterForRemoteNotificationsWithError:(nullable NSError *)error;
/**
Intercepts the `- application:didReceiveRemoteNotification:` application delegate.
@param application The app object that received the remote notification.
@param userInfo A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an `NSDictionary` object; the dictionary may contain only property-list objects plus `NSNull`.
*/
- (void)interceptApplication:(UIApplication *)application
didReceiveRemoteNotification:(nullable NSDictionary *)userInfo;
@end
/**
A topic object.
*/
@interface AWSPushTopic : NSObject
/**
Initializes the topic object with a given topic ARN.
@param topicARN A topic ARN from Amazon SNS.
@return An initialized instance of `PushTopic`.
*/
- (instancetype)initWithTopicARN:(NSString *)topicARN
pushManager:(AWSPushManager *)pushManager;
/**
The topic ARN.
*/
@property (nonatomic, readonly) NSString *topicARN;
/**
The topic name.
*/
@property (nonatomic, readonly) NSString *topicName;
/**
Indicates if the device is registered for the topic.
*/
@property (nonatomic, readonly, getter=isSubscribed) BOOL subscribed;
/**
The subscription ARN from Amazon SNS.
*/
@property (nonatomic, readonly, nullable) NSString *subscriptionARN;
/**
Subscribes the device to the topic.
On success, it calls `- topicDidSubscribe:` from `AWSPushTopicDelegate`.
On failure, it calls `topic:didFailToSubscribeWithError:` from `AWSPushTopicDelegate`.
*/
- (void)subscribe;
/**
Unsubscribes the device from the topic.
On success, it calls `- topicDidUnsubscribe:` from `AWSPushTopicDelegate`.
On failure, it calls `topic:didFailToUnsubscribeWithError:` from `AWSPushTopicDelegate`.
*/
- (void)unsubscribe;
@end
/**
A delegate for receiving `PushManager` events.
*/
@protocol AWSPushManagerDelegate <NSObject>
@required
/**
Indicates the success of the `- registerForPushNotifications` call.
@param pushManager An instance of `PushManager`.
*/
- (void)pushManagerDidRegister:(AWSPushManager *)pushManager;
/**
Indicates the failure of the `- registerForPushNotifications` call.
@param pushManager An instance of `PushManager`.
@param error An `NSError` object that encapsulates information why registration did not succeed.
*/
- (void)pushManager:(AWSPushManager *)pushManager
didFailToRegisterWithError:(NSError *)error;
/**
Indicates the device received a Push Notifiation.
@param userInfo A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an `NSDictionary` object; the dictionary may contain only property-list objects plus `NSNull`.
*/
- (void)pushManager:(AWSPushManager *)pushManager
didReceivePushNotification:(NSDictionary *)userInfo;
/**
Indicates the success of the `- disablePushNotifications` call.
@param pushManager An instance of `PushManager`.
*/
- (void)pushManagerDidDisable:(AWSPushManager *)pushManager;
/**
Indicates the failure of the `- disablePushNotifications` call.
@param pushManager An instance of `PushManager`.
@param error An `NSError` object that encapsulates information why disable did not succeed.
*/
- (void)pushManager:(AWSPushManager *)pushManager
didFailToDisableWithError:(NSError *)error;
@end
/**
A delegate for receiving `PushTopic` events.
*/
@protocol AWSPushTopicDelegate <NSObject>
@required
/**
Indicates the subscribe succeeded.
@param topic The topic object.
*/
- (void)topicDidSubscribe:(AWSPushTopic *)topic;
/**
Indicates the subscribe failed.
@param topic The topic object.
@param error An `NSError` object that encapsulates information why subscribe did not succeed.
*/
- (void)topic:(AWSPushTopic *)topic
didFailToSubscribeWithError:(NSError *)error;
/**
Indicates the unsubscribe succeeded.
@param topic The topic object.
*/
- (void)topicDidUnsubscribe:(AWSPushTopic *)topic;
/**
Indicates the unsubscribe failed.
@param topic The topic object.
@param error An `NSError` object that encapsulates information why unsubscribe did not succeed.
*/
- (void)topic:(AWSPushTopic *)topic
didFailToUnsubscribeWithError:(NSError *)error;
@end
/**
* `AWSPushManagerConfiguration` is the configuration object for `AWSPushManager` class.
*/
@interface AWSPushManagerConfiguration : NSObject
@property (nonatomic, readonly, nullable) AWSServiceConfiguration *serviceConfiguration;
@property (nonatomic, readonly) NSString *platformARN;
@property (nonatomic, readonly, nullable) NSArray<NSString *> *topicARNs;
/**
Returns an instance of `AWSPushManagerConfiguration`. Use this as the configuration object for AWSPushManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
let pushManagerConfiguration = AWSPushManagerConfiguration(snsPlatformARN: "SNS_PLATFORM_ARN")
AWSPushManager.register(with: pushManagerConfiguration, forKey: "defaultPushManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSPushManagerConfiguration *pushManagerConfiguration = [[AWSPushManager alloc] initWithSNSPlatformARN:@"SNS_PLATFORM_ARN"];
[AWSPushManager registerPushManagerWithConfiguration:pushManagerConfiguration
forKey:@"defaultPushManager"];
@param snsPlatformARN The SNS Platform ARN
@return an instance of `AWSPushManagerConfiguration`
*/
- (instancetype)initWithPlatformARN:(NSString *)platformARN;
/**
Returns an instance of `AWSPushManagerConfiguration`. Use this as the configuration object for AWSPushManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider)
let pushManagerConfiguration = AWSPushManagerConfiguration(snsPlatformARN: "SNS_PLATFORM_ARN", topicARNs: nil, serviceConfiguration: configuration)
AWSPushManager.register(with: pushManagerConfiguration, forKey: "defaultPushManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1
credentialsProvider:credentialsProvider];
AWSPushManagerConfiguration *pushManagerConfiguration = [[AWSPushManager alloc] initWithSNSPlatformARN:@"SNS_PLATFORM_ARN"
topicARNs:nil
serviceConfiguration:configuration];
[AWSPushManager registerPushManagerWithConfiguration:pushManagerConfiguration
forKey:@"defaultPushManager"];
@param platformARN The SNS Platform ARN
@param topicARN The list of SNS topics that could be registered
@param serviceConfiguration AWSServiceConfiguration object; nil for default configuration
@return an instance of `AWSPushManagerConfiguration`
*/
- (instancetype)initWithPlatformARN:(NSString *)platformARN
topicARNs:(nullable NSArray<NSString *> *)topicARNs
serviceConfiguration:(nullable AWSServiceConfiguration *)serviceConfiguration;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,64 @@
//
// AWSQuickbooksAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSQuickbooksAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user during OAuth1.0
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow.
*
* @param key The API key provided by Quickbooks
* @param redirectURI The redirect URI you provided Zendesk
* i.e. https://mysampleapp.amazonaws.com/zendesk/success
*/
- (void)configureWithAPIKey:(NSString * _Nonnull)key
redirectURI:(NSString * _Nonnull)redirectURI;
/**
* The secret must be set before attempting to authorize.
* It is recommended that this secret be securely passed to this point.
*
* @param secret The API secret provided by Quickbooks
* i.e. @"abc123"
*/
- (void)setAPISecret:(NSString * _Nonnull)secret;
/**
* @return The API secret used to authorize
*/
- (NSString * _Nullable)getAPIKey;
/**
* @return The API secret used to authorize
*/
- (NSString * _Nullable)getAPISecret;
/**
* @return The access token, available after authorization
*/
- (NSString * _Nullable)getAccessToken;
/**
* @return The token secret, available after authorization
*/
- (NSString * _Nullable)getAccessTokenSecret;
/**
* @return The realm ID, available after authorization
*/
- (NSString * _Nullable)getRealmID;
@end

View File

@@ -0,0 +1,167 @@
//
// AWSSAMLSignInProvider.h
// AWSMobileHubHelper
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Any class over-riding the `AWSSAMLSignInProvider` class for implemeting `SAML` as a sign-in provider,
* should also adopt the `AWSSAMLSignInProviderInstance` protocol.
*/
@protocol AWSSAMLSignInProviderInstance
/**
* The shared instance of the class implementing `SAML` as a sign-in provider.
*
* @return the shared instance of the class implementing `SAML` as a sign-in provider.
*/
+ (id<AWSSignInProvider>)sharedInstance;
@end
@interface AWSSAMLSignInProvider : NSObject <AWSSignInProvider>
#pragma mark - Initializer
/*
The only initializer for AWSSAMLSignInProvider. This initializer has to be used by the class over-riding AWSSAMLSignInProvider.
@param uniqueIdentifier The unique identifier string for the SAML Sign In Provider
@param identityProviderName The identifier provider name for SAML provider (the Identity Provider ARN for SAML)
@return instance of AWSSAMLSignInProvider
*/
- (instancetype)initWithIdentifier:(NSString *)uniqueIdentifier
identityProviderName:(NSString *)identityProviderName;
#pragma mark - Mandatory Override Methods
// The user is expected to over the methods in this pragma mark
/**
* This method will be called when `loginWithSignInProvider` is invoked from `AWSIdentityManager`.
* Developer is expected to call `setResult` on `taskCompletionSource` with the SAML login token on a successful login,
* or `setError` when the login is cancelled or encounters an error.
*
* The token internally is stored in the keychain store, and a flag is set in `NSUserDefaults` indicating the user is logged in using this `SAML` sign-in provider.
*
* ** Objective-C ***
* - (void)handleLoginWithTaskCompletionSource:(AWSTaskCompletionSource<NSString *> *)taskCompletionSource {
* // handle login logic
* if(loginSuccessful) {
* [taskCompletionSource setResult:@"SuccessfullyGeneratedToken"];
* } else {
* [taskCompletionSource setError:error];
* }
* }
*
* ** Swift **
* func handleLogicWithTaskCompletionSource(taskCompletionSource: AWSTaskCompletionSource<String>) {
* if(loginSuccessful) {
* taskCompletionSource.setResult("SuccessfullyGeneratedToken")
* } else {
* taskCompletionSource.setError(error)
* }
* }
*
* @param taskCompletionSource the `AWSTaskCompletionSource` object which is used to call `setResult` or `setError`
*/
- (void)handleLoginWithTaskCompletionSource:(AWSTaskCompletionSource<NSString *> *)taskCompletionSource;
/**
* This method is called whenver the cognito credentials are refreshed or when app is loaded from background state / closed state.
* The previous saved token can be fetched using `fetchStoredToken`, and if it is valid the same can be returned without refreshing.
*
* @return an instance of `AWSTask`. `task.result` should contain the valid token in case of successful token fetch, or `task.error` should be set
*/
- (AWSTask<NSString *>*)fetchLatestToken;
#pragma mark - Optional Override Methods
/**
* Passes parameters used to launch the application to the current identity provider.
* It can be used to complete the user sign-in call flow, which uses a browser to
* get information from the user, directly. The current sign-in provider will be set to nil if
* the sign-in provider is not registered using `registerAWSSignInProvider:forKey` method of
* `AWSSignInProviderFactory` class.
*
* @param application application
* @param launchOptions options used to launch the application
* @return true if this call handled the operation
*/
- (BOOL)interceptApplication:(UIApplication *)application
didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;
/**
* Passes parameters used to launch the application to the current identity provider.
* It can be used to complete the user sign-in call flow, which uses a browser to
* get information from the user, directly. The developer should store a reference to
* the `taskCompletionSource` instance provided by the `handleLoginWithTaskCompletionSouce`
* method to set the result with successfully retrieved token.
*
* @param application application
* @param url url used to open the application
* @param sourceApplication source application
* @param annotation annotation
* @return true if this call handled the operation
*/
- (BOOL)interceptApplication:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(nullable NSString *)sourceApplication
annotation:(id)annotation;
#pragma mark - Instance Methods
/**
* Sets the userName value of the signed-in user into a persistent store.
* Should be called on a successful login to set the user name which is used by `AWSIdentityManager`.
*
* @param userName the user name of the signed-in user
*/
- (void)setUserName:(NSString *)userName;
/**
* Sets the imageURL value of the signed-in user into a persistent store.
* Should be called on a successful login to set the user name which is used by `AWSIdentityManager`.
*
* @param imageURL the image URL for a picture of the signed-in user
*/
- (void)setImageURL:(NSURL *)imageURL;
/**
* Can be used to store a reference of teh view controller from which `loginWithSignInProvider` is invoked by `AWSIdentityManager`
*
* @param signInViewController the signInViewController object whose reference needs to be stored
*/
- (void)setViewControllerForSignIn:(UIViewController *)signInViewController;
/**
* This method returns the view controller whose reference was stored using `setViewControllerForSignIn`
*
* @return the stored view controller if set, else `nil`
*/
- (UIViewController *)getViewControllerForSignIn;
/**
* Returns the token stored in keychain as-is (without refreshing)
*
* @return the token if available in keychain, else `nil`
*/
- (NSString *)fetchStoredToken;
/**
* Determines if the user is logged in based on the token available in keychain and if the login flag is set internally.
*
* @return `YES` if the user is logged in using `SAML` sign-in provider instance
*/
- (BOOL)isLoggedIn;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,43 @@
//
// AWSSalesforceAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSSalesforceAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user during OAuth2.0
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow.
*
* @param clientID Client ID provided by Salesforce.
* @param redirectURI Should be you're bundle ID or universal URL
* i.e. com.amazonaws.mysampleapp://salesforce/success
* https://mysampleapp.amazonaws.com/success
* @return the singleton
*/
- (void)configureWithClientID:(NSString * _Nonnull)clientID redirectURI:(NSString * _Nonnull)redirectURI;
/**
* @return The token type. Available after user authorizes app.
* i.e. Bearer
*/
- (NSString * _Nullable)getTokenType;
/**
* @return The instance Salesforce has assigned you. Available after user authorizes app.
* i.e. https://na15.salesforce.com/
*/
- (NSString * _Nullable)getInstanceURL;
@end

View File

@@ -0,0 +1,84 @@
//
// AWSSignInProvider.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <UIKit/UIKit.h>
#import <AWSCore/AWSCore.h>
NS_ASSUME_NONNULL_BEGIN
@class AWSIdentityManager;
/**
* `AWSSignInProvider` protocol defines a list of methods and properties which a Sign-In Provider should implement.
*
* The AWSSignInProvider is implemented by difference Sign-In Providers like FacbookSignInProvider, GoogleSignInProvider, etc.
*
*/
@protocol AWSSignInProvider <AWSIdentityProvider>
/**
Determines if a user is logged in.
*/
@property (nonatomic, readonly, getter=isLoggedIn) BOOL loggedIn;
/**
The URL for profile image of a user.
*/
@property (nonatomic, readonly, nullable) NSURL *imageURL;
/**
The User Name of a user.
*/
@property (nonatomic, readonly, nullable) NSString *userName;
/**
The login handler method for the Sign-In Provider.
The completionHandler will bubble back errors to the developers.
*/
- (void)login:(void (^)(id _Nullable result, NSError * _Nullable error))completionHandler;
/**
The logout handler method for the Sign-In Provider.
*/
- (void)logout;
/**
* Call this method on a successful login. This method should store a flag in persistent storage which determines if the user has signed-in using this sign-in provider.
* This method is called by AWSIdentityManager on `interceptApplication:didFinishLaunchingWithOptions` method to set the current sign-in provider.
*/
- (void)setCachedLoginFlag;
/**
* Clears the cached login flag. This method should be called during `logout` to clear the stored flag.
*/
- (void)clearCachedLoginFlag;
/**
* Fetches the status of the cached login flag set using `setCachedLoginFlag`.
*
* @return `YES` if the setCachedLoginFlag is set.
*/
- (BOOL)isCachedLoginFlagSet;
/**
The handler method for managing the session reload for the Sign-In Provider.
*/
- (void)reloadSession;
- (BOOL)interceptApplication:(UIApplication *)application
didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;
- (BOOL)interceptApplication:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(nullable NSString *)sourceApplication
annotation:(id)annotation;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,44 @@
//
// AWSSignInProviderFactory.h
// AWSMobileHubHelper
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <Foundation/Foundation.h>
#import "AWSSignInProvider.h"
NS_ASSUME_NONNULL_BEGIN
/*
`AWSSignInProviderFactory` stores the instances of the sign in providers implemented using the protocol `AWSSignInProvider`. The instances registered with `AWSSignInProviderFactory` are fetched by `AWSIdentityManager` when `interceptApplication:didFinishLaunchingWithOptions` is called from `AWSMobileClient`.
*/
@interface AWSSignInProviderFactory : NSObject
// Fetches the shared instance of `AWSSignInProviderFactory`.
+(instancetype)sharedInstance;
/**
Registers the shared instance of sign in provider implementing `AWSSignInProvider` with specified key.
@param signInProvider The shared instance of sign in provider implementing `AWSSignInProvider` protocol.
@param key A string to identify the signInProvider.
**/
-(void)registerAWSSignInProvider:(id<AWSSignInProvider>)signInProvider
forKey:(NSString *)key NS_SWIFT_NAME(register(signInProvider:forKey:));
/**
Fetches the shared instance of sign in provider implementing `AWSSignInProvider` with specified key.
@param key A string to identify the signInProvider.
@return The shared instance of sign in provider implementing `AWSSignInProvider` registered with specified key.
**/
-(id<AWSSignInProvider>)signInProviderForKey:(NSString *)key;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,358 @@
//
// AWSUserFileManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import <AWSCore/AWSCore.h>
#import "AWSContentManager.h"
@class AWSLocalContent;
@class AWSUserFileManagerConfiguration;
NS_ASSUME_NONNULL_BEGIN
/**
* `AWSUserFileManager` inherits from `AWSContentManager` and adds the upload capabilities.
*
* The User File Manager uploads and downloads files from Amazon S3. It caches downloaded
* files locally on the device in a size-limited cache. Downloaded files may be pinned
* to the cache, so that they are not automatically removed when the cache size limit
* is exceeded. The User File Manager provides access to two folders in the Amazon S3 bucket,
* one called "public/" for public files, which are accessible to any user of the app,
* and one called "private/" which contains a sub-folder for each Amazon Cognito
* identified user. Files in the user's private folder can only be accessed by that user.
* The User File Manager serves as the application's interface into the file-related
* functionality of the User Data Storage feature.
* Requires the AWSS3 framework of AWSiOSSDK.
*/
@interface AWSUserFileManager : AWSContentManager
/**
* The list of currently uploading contents.
*/
@property (nonatomic, readonly) NSArray<AWSLocalContent *> *uploadingContents;
/**
Returns the default User File Manager singleton instance configured using the information provided in `Info.plist` file.
*Swift*
let userFileManager = AWSUserFileManager.defaultUserFileManager()
*Objective-C*
AWSUserFileManager *userFileManager = [AWSUserFileManager defaultUserFileManager];
*/
+ (instancetype)defaultUserFileManager NS_SWIFT_NAME(defaultUserFileManager());
/**
Creates a helper client for AWSUserFileManager for specified configuration with mentioned key.
Use this method only if you require a helper client with specific configuration.
For example, set the configuration in `- application:didFinishLaunchingWithOptions:`
*Swift*
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
let userFileManagerConfiguration = AWSUserFileManagerConfiguration(bucketName: "myBucket", serviceConfiguration: configuration)
AWSUserFileManager.register(with: userFileManagerConfiguration, forKey: "USWest2BucketManager")
return true
}
*Objective-C*
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSUserFileManagerConfiguration *userFileManagerConfiguration = [[AWSUserFileManager alloc] initWithBucketName:@"myBucketName"
serviceConfiguration:configuration];
[AWSUserFileManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"USWest2BucketManager"];
return YES;
}
Then call the following to get the helper client:
*Swift*
let userFilemanager = AWSUserFileManager(forKey: "USWest2BucketManager")
*Objective-C*
AWSUserFileManager *userFileManager = [AWSUserFileManager userFileManagerForKey:@"USWest2BucketManager"];
@warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
@param userFileManagerConfiguration AWSUserFileManagerConfiguration object for the manager.
@param key A string to identify the helper client.
*/
+ (void)registerUserFileManagerWithConfiguration:(AWSUserFileManagerConfiguration *)userFileManagerConfiguration
forKey:(NSString *)key;
/**
Retrieves the helper client associated with the key. You need to call `+ registerUserFileManagerWithConfiguration:forKey:` before invoking this method. If `+ registerUserFileManagerWithConfiguration:forKey:` has not been called in advance or the key does not exist, this method returns `nil`.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
let userFileManagerConfiguration = AWSUserFileManagerConfiguration(bucketName: "myBucket", serviceConfiguration: configuration)
AWSUserFileManager.register(with: userFileManagerConfiguration, forKey: "USWest2BucketManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSUserFileManagerConfiguration *userFileManagerConfiguration = [[AWSUserFileManager alloc] initWithBucketName:@"myBucketName"
serviceConfiguration:configuration];
[AWSUserFileManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"USWest2BucketManager"];
Then call the following to get the helper client:
*Swift*
let UserFilemanager = AWSUserFileManager(forKey: "USWest2BucketManager")
*Objective-C*
AWSUserFileManager *UserFileManager = [AWSUserFileManager UserFileManagerForKey:@"USWest2BucketManager"];
@param key A string to identify the helper client.
@return An instance of AWSUserFileManager for specified key.
*/
+ (instancetype)UserFileManagerForKey:(NSString *)key;
/**
Removes the helper client associated with the key and release it.
*Swift*
AWSUserFileManager.remove(forKey: "USWest2BucketManager")
*Objective-C*
[AWSUserFileManager removeUserFileManagerForKey:@"USWest2BucketManager"];
@warning Before calling this method, make sure no method is running on this client.
@param key A string to identify the helper client.
*/
+ (void)removeUserFileManagerForKey:(NSString *)key;
/**
Returns an instance of `AWSLocalContent`. You use this method to create an instance of `AWSLocalContent` to upload data to an Amazon S3 bucket with the specified key.
*Swift*
func uploadWithData(data: NSData, forKey key: String) {
let userFilemanager = AWSUserFileManager(forKey: "KeyUsedToRegister")
let localContent = userFilemanager.localContent(with: data, key: key)
localContent.uploadWithPinOnCompletion(..., progressBlock: ..., completionHandler: ...)
}
*Objective-C*
- (void)uploadWithData:(NSData *)data forKey:(NSString *)key {
AWSUserFileManager *userFileManager = [AWSUserFileManager userFileManagerForKey:@"KeyUsedToRegister"];
AWSLocalContent *localContent = [self.manager localContentWithData:data
key:key];
[localContent uploadWithPinOnCompletion:...
progressBlock:...
completionHandler:...];
}
@param data The data to be uploaded.
@param key The Amazon S3 key.
@return An instance of `AWSLocalContent` that represents data to be uploaded.
*/
- (AWSLocalContent *)localContentWithData:(nullable NSData *)data
key:(NSString *)key;
@end
/**
* A category to add remote file removal to `AWSContent`.
*/
@interface AWSContent(AWSUserFileManager)
/**
Removes the remote file associated with `AWSContent`.
*Swift*
func removeContent(content: AWSContent) {
content.removeRemoteContent(completionHandler: {(content: AWSContent?, error: NSError?) -> Void in
if let error = error {
print("Failed to delete an object from the remote server. \(error)")
} else {
print("Success")
// Do something further
}
})
}
*Objective-C*
- (void)removeContent:(AWSContent *)content {
[content removeRemoteContentWithCompletionHandler:^(AWSContent *content, NSError *error) {
if (error) {
NSLog(@"Failed to delete an object from the remote server. %@", error);
} else {
NSLog(@"Success");
// Do something further
}
}];
}
@param completionHandler The completion handler block.
*/
- (void)removeRemoteContentWithCompletionHandler:(void(^ _Nullable)(AWSContent * _Nullable content, NSError * _Nullable error))completionHandler;
@end
/**
* A representation of the local content that may not exist in the Amazon S3 bucket yet. When uploading data to an S3 bucket, you first need to create an instance of this class.
*/
@interface AWSLocalContent : AWSContent
/**
Uploads data associated with the local content.
*Swift*
func uploadWithData(data: NSData, forKey key: String) {
let userFilemanager = AWSUserFileManager(forKey: "KeyUsedToRegister")
let localContent = userFilemanager.localContent(with: data, key: key)
localContent.uploadWithPinOnCompletion(false, progressBlock: {(content: AWSLocalContent?, progress: NSProgress?) -> Void in
// handle progress here
}, completionHandler: {(content: AWSContent?, error: Error?) -> Void in
if let error = error {
// handle error here
print("Error occured in uploading: \(error)")
return
}
// handle successful upload here
})
}
*Objective-C*
- (void)uploadWithData:(NSData *)data forKey:(NSString *)key {
AWSUserFileManager *userFileManager = [AWSUserFileManager userFileManagerForKey:@"KeyUsedToRegister"];
AWSLocalContent *localContent = [self.manager localContentWithData:data
key:key];
[localContent uploadWithPinOnCompletion:NO
progressBlock:^(AWSLocalContent *content, NSProgress *progress) {
// handle progress here
}
completionHandler:^(AWSContent *content, NSError *error) {
if (error) {
// handle error here
NSLog(@"Error occured in uploading: %@", error);
return;
}
// perform tasks after successful upload
}];
}
@param pinOnCompletion When set to `YES`, it pins the content after finishing uploading it.
@param progressBlock The upload progress block.
@param completionHandler The completion handler block.
*/
- (void)uploadWithPinOnCompletion:(BOOL)pinOnCompletion
progressBlock:(void(^ _Nullable)(AWSLocalContent *content, NSProgress *progress))progressBlock
completionHandler:(void(^ _Nullable)(AWSLocalContent * _Nullable content, NSError * _Nullable error))completionHandler;
@end
/**
* `AWSUserFileManagerConfiguration` is the configuration object for `AWSUserFileManager` class.
*
*/
@interface AWSUserFileManagerConfiguration: NSObject
@property (nonatomic, assign, readonly) AWSServiceConfiguration *serviceConfiguration;
@property (nonatomic, readonly) NSString *bucketName;
/**
Returns an instance of `AWSUserFileManagerConfiguration`. Use this as the configuration object for AWSUserFileManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
let userFileManagerConfiguration = AWSUserFileManagerConfiguration(bucketName: "myBucket", serviceConfiguration: configuration)
AWSUserFileManager.registerUserFileManagerWithConfiguration(userFileManagerConfiguration, forKey: "USWest2BucketManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
AWSUserFileManagerConfiguration *userFileManagerConfiguration = [[AWSUserFileManager alloc] initWithBucketName:@"myBucketName"
serviceConfiguration:configuration];
[AWSUserFileManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"USWest2BucketManager"];
@param bucketName Name of the bucket
@param serviceConfiguration AWSServiceConfiguration object; nil for default configuration
@return an instance of AWSUserFileManagerConfiguration
*/
- (instancetype)initWithBucketName:(NSString *)bucketName
serviceConfiguration:(nullable AWSServiceConfiguration *)serviceConfiguration;
/**
Returns an instance of `AWSUserFileManagerConfiguration` using the default service configuration. Use this as the configuration object for AWSUserFileManager.
*Swift*
let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
AWSServiceManager.defaultServiceManager().defaultServiceConfiguration = configuration
let userFileManagerConfiguration = AWSUserFileManagerConfiguration(bucketName: "myBucket")
AWSUserFileManager.registerUserFileManagerWithConfiguration(userFileManagerConfiguration, forKey: "USWest2BucketManager")
*Objective-C*
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
identityPoolId:@"YourIdentityPoolId"];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
credentialsProvider:credentialsProvider];
AWSUserFileManagerConfiguration *userFileManagerConfiguration = [[AWSUserFileManager alloc] initWithBucketName:@"myBucketName"];
[AWSUserFileManager registerUserFileManagerWithConfiguration:userFileManagerConfiguration
forKey:@"USWest2BucketManager"];
@param bucketName Name of the bucket
@return an instance of AWSUserFileManagerConfiguration
*/
- (instancetype)initWithBucketName:(NSString *)bucketName;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,89 @@
//
// AWSZendeskAuthorizationManager.h
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
// copy, distribute and modify it.
//
#import "AWSAuthorizationManager.h"
@interface AWSZendeskAuthorizationManager : AWSAuthorizationManager
/**
* Singleton used to authorize user during OAuth2.0
* @return the singleton
*/
+ (instancetype _Nonnull)sharedInstance;
/**
* Customize the flow. This relies on the redirectURI being an Universal link.
*
* @param clientID The client ID that you signed up for in Zendesk
* @param redirectURI The redirect URI you provided Zendesk
* i.e. https://mysampleapp.amazonaws.com/zendesk/success
* @param subdomain The subdomain that you signed up for in Zendesk
*/
- (void)configureWithClientID:(NSString * _Nonnull)clientID
redirectURI:(NSString * _Nonnull)redirectURI
subdomain:(NSString * _Nonnull)subdomain;
/**
* If you are unable to setup Universal links at this moment, then for development purposes
* you may consider use a HTTPS endpoint that you control to redirect to a custom app scheme url.
*
* Example:
* Endpoint HTML content at https://awsmobilehub.s3-us-west-2.amazonaws.com/zendesk
* <html>
* <script>window.location.href = "com.amazon.mysampleapp://zendesk/oauth2" + window.location.href;</script>
* </html>
*
* customSchemeRedirectURI = @"com.amazon.mysampleapp://zendesk/oauth2";
* httpsEndpoint = @"https://awsmobilehub.s3-us-west-2.amazonaws.com/zendesk";
*
* @param clientID The client ID that you signed up for in Zendesk
* @param customSchemeRedirectURI The redirectURI that has the custom app scheme
* @param httpsEndpoint The HTTPS endpoint that needs to be registered with Zendesk.
* This endpoint must redirect the page to the customSchemeRedirectURI
* provided here.
* @param subdomain The subdomain that you signed up for in Zendesk
*/
- (void)configureWithClientID:(NSString * _Nonnull)clientID
setCustomSchemeRedirectURI:(NSString * _Nonnull)customSchemeRedirectURI
httpsEndpoint:(NSString * _Nonnull)httpsEndpoint
subdomain:(NSString * _Nonnull)subdomain;
/**
*
* Available scopes:
* tickets
* users
* auditlogs (read only)
* organizations
* hc
* apps
* triggers
* automations
* targets
*
* @param scope Specify the amount of access the user would like.
* i.e. @"read"
* @"read tickets:write"
* @"tickets:read tickets:write"
*/
- (void)setScope:(NSString * _Nonnull)scope;
/**
* @return The token type. Available after user authorizes app.
* i.e. Bearer
*/
- (NSString * _Nullable)getTokenType;
/**
* @return The subdomain that you signed up for in Zendesk.
* i.e. aws
*/
- (NSString * _Nullable)getSubdomain;
@end

View File

@@ -0,0 +1,6 @@
framework module AWSMobileHubHelper {
umbrella header "AWSMobileHubHelper.h"
export *
module * { export * }
}

View File

@@ -0,0 +1,47 @@
//
// AppDelegate.swift
// My Mind
//
// Created by Alexander Davis on 30/03/2017.
// Copyright © 2017 Alexander Davis. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
return AWSMobileClient.sharedInstance.didFinishLaunching(application, withOptions: launchOptions)
}
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return AWSMobileClient.sharedInstance.withApplication(application, withURL: url, withSourceApplication: sourceApplication, withAnnotation: annotation)
}
func applicationDidBecomeActive(_ application: UIApplication) {
AWSMobileClient.sharedInstance.applicationDidBecomeActive(application)
}
}

View File

@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="GW0-69-bD5">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="M8s-fF-QEx">
<objects>
<viewController id="GW0-69-bD5" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="lMs-dA-kqk"/>
<viewControllerLayoutGuide type="bottom" id="WDo-zS-HHP"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="ppq-VJ-VDs">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2017 Alexander Davis." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="zGC-go-npl">
<rect key="frame" x="20" y="626" width="336" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="iTunesArtwork" translatesAutoresizingMaskIntoConstraints="NO" id="nap-1D-EZj">
<rect key="frame" x="67" y="42" width="242" height="242"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="My Mind" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="Uex-kl-GPa">
<rect key="frame" x="20" y="373" width="335" height="43"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="zGC-go-npl" secondAttribute="bottom" constant="20" id="58u-0f-xbE"/>
<constraint firstItem="zGC-go-npl" firstAttribute="leading" secondItem="ppq-VJ-VDs" secondAttribute="leading" constant="20" symbolic="YES" id="Adf-Vm-odA"/>
<constraint firstAttribute="centerX" secondItem="zGC-go-npl" secondAttribute="centerX" id="eca-p0-zJE"/>
</constraints>
</view>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ioh-gR-H2E" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="52" y="374.66266866566718"/>
</scene>
</scenes>
<resources>
<image name="iTunesArtwork" width="512" height="512"/>
</resources>
</document>

View File

@@ -0,0 +1,273 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12118" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="oAg-C8-rhg">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Referrals-->
<scene sceneID="CxO-zY-br9">
<objects>
<viewController id="Ra5-wP-xlw" userLabel="Referrals" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="3Yk-Te-TRs"/>
<viewControllerLayoutGuide type="bottom" id="yrN-aj-REs"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="iwI-KL-lka">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" text="Referrals" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="dXB-nY-6yC">
<rect key="frame" x="109" y="28" width="157.5" height="42"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<tabBarItem key="tabBarItem" title="Refferals" image="Referrals" id="YfX-ar-2Vw"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="5Nq-tA-egp" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="753" y="717"/>
</scene>
<!--ReferralConfirmation-->
<scene sceneID="Rcg-0o-X1L">
<objects>
<viewController id="BvY-Ss-7cu" userLabel="ReferralConfirmation" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="dlw-HS-h7K"/>
<viewControllerLayoutGuide type="bottom" id="H5V-19-Vm7"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="npb-eE-7qe">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="aWe-Uy-dJc" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1630" y="716"/>
</scene>
<!--ReceiveAppointmentRequest-->
<scene sceneID="1LG-43-q0d">
<objects>
<viewController id="oi9-w6-cwg" userLabel="ReceiveAppointmentRequest" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="rHn-R8-eck"/>
<viewControllerLayoutGuide type="bottom" id="d1C-nu-7Sz"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="LeZ-O3-7qA">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="a3A-53-47G" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2521" y="1397"/>
</scene>
<!--UpcomingAppointement-->
<scene sceneID="JHH-b3-hVI">
<objects>
<viewController id="4I9-G2-daI" userLabel="UpcomingAppointement" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="RH0-Yj-RhD"/>
<viewControllerLayoutGuide type="bottom" id="ex5-Cy-Ikf"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="0Db-lU-cSK">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="DUd-Rz-rUN" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2521" y="2082"/>
</scene>
<!--PastAppointment-->
<scene sceneID="AQX-lE-Juo">
<objects>
<viewController id="83T-j8-cGI" userLabel="PastAppointment" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="OmE-aB-FjD"/>
<viewControllerLayoutGuide type="bottom" id="E2Y-7y-P6f"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="M0C-28-ieW">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="BHX-nT-O90" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2521" y="2761"/>
</scene>
<!--Appointments-->
<scene sceneID="yzB-GY-qo4">
<objects>
<viewController id="LJA-dh-Ac7" userLabel="Appointments" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="GZZ-sf-3kY"/>
<viewControllerLayoutGuide type="bottom" id="qyf-cw-jE9"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="fq8-kK-K8T">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="2GZ-xh-r4C">
<rect key="frame" x="0.0" y="64" width="375" height="546"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
<color key="sectionIndexColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="sectionIndexBackgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</tableView>
<navigationBar contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="UEr-5v-7HV">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<items>
<navigationItem title="My Appointments" id="7lp-3H-As7">
<barButtonItem key="rightBarButtonItem" systemItem="add" id="3GS-pT-JUc">
<connections>
<segue destination="sbE-CW-e6j" kind="show" id="23e-HC-Cwt">
<nil key="action"/>
</segue>
</connections>
</barButtonItem>
</navigationItem>
</items>
</navigationBar>
</subviews>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<tabBarItem key="tabBarItem" title="Appointments" image="Appointments" selectedImage="Appointments" id="vB5-XU-BJq"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="aeI-QK-fk9" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1247" y="1400"/>
</scene>
<!--MyAccount-->
<scene sceneID="IYQ-9Q-K9E">
<objects>
<viewController id="Uos-rE-1QX" userLabel="MyAccount" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="JAQ-ai-YZw"/>
<viewControllerLayoutGuide type="bottom" id="bX6-2f-jgc"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="KyT-63-i9i">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<tabBarItem key="tabBarItem" title="Account" image="UserIdentityIconSmall" selectedImage="UserIdentityIconSmall" id="blW-SO-Bzf"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wkw-LF-cSR" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="753" y="2768"/>
</scene>
<!--Forum-->
<scene sceneID="RXV-hK-k89">
<objects>
<viewController id="el6-88-p6n" userLabel="Forum" customClass="ForumViewController" customModule="My_Mind" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="oHE-DA-Ytn"/>
<viewControllerLayoutGuide type="bottom" id="2Mx-Wx-RdG"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="4LX-9a-fOn">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<webView contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CfX-US-VhO">
<rect key="frame" x="0.0" y="28" width="375" height="546"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</webView>
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Ns0-Zt-adx">
<rect key="frame" x="0.0" y="574" width="375" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<items>
<barButtonItem style="plain" systemItem="flexibleSpace" id="QZM-96-aqH"/>
<barButtonItem systemItem="stop" id="AmT-Tx-KLv">
<connections>
<action selector="stopLoading" destination="CfX-US-VhO" id="lMN-9F-B8a"/>
</connections>
</barButtonItem>
<barButtonItem systemItem="refresh" id="quR-NQ-R5S">
<connections>
<action selector="reload" destination="CfX-US-VhO" id="cLW-1k-Ko2"/>
</connections>
</barButtonItem>
<barButtonItem style="plain" systemItem="flexibleSpace" id="u5M-YD-vrX"/>
</items>
</toolbar>
</subviews>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
<tabBarItem key="tabBarItem" title="Forum" image="Forum" id="upr-hw-v3q"/>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
<connections>
<outlet property="webView" destination="CfX-US-VhO" id="Xs8-Un-ikT"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="cgP-6U-nyQ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="753" y="2080"/>
</scene>
<!--MakeAppointmentRequest-->
<scene sceneID="e0c-Bd-7zl">
<objects>
<viewController id="sbE-CW-e6j" userLabel="MakeAppointmentRequest" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="kuO-Jg-Mqq"/>
<viewControllerLayoutGuide type="bottom" id="yRJ-GC-9sA"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="7bb-rd-1hg">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.25098040700000002" green="0.0" blue="0.50196081400000003" alpha="1" colorSpace="calibratedRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Cxc-oR-pL4" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2521" y="716"/>
</scene>
<!--TabBarController-->
<scene sceneID="hNT-nd-IzZ">
<objects>
<tabBarController modalTransitionStyle="crossDissolve" id="oAg-C8-rhg" userLabel="TabBarController" sceneMemberID="viewController">
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="lightContent"/>
<nil key="simulatedBottomBarMetrics"/>
<tabBar key="tabBar" contentMode="scaleToFill" id="TAV-b7-Bmz">
<rect key="frame" x="0.0" y="975" width="768" height="49"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</tabBar>
<connections>
<segue destination="Ra5-wP-xlw" kind="relationship" relationship="viewControllers" id="B8q-Mq-JiE"/>
<segue destination="LJA-dh-Ac7" kind="relationship" relationship="viewControllers" id="G8U-JK-Vm6"/>
<segue destination="el6-88-p6n" kind="relationship" relationship="viewControllers" id="2By-n6-uvo"/>
<segue destination="Uos-rE-1QX" kind="relationship" relationship="viewControllers" id="7L2-OE-CyR"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Cte-N3-rCK" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-33" y="1401"/>
</scene>
</scenes>
<resources>
<image name="Appointments" width="30" height="30"/>
<image name="Forum" width="30" height="30"/>
<image name="Referrals" width="30" height="30"/>
<image name="UserIdentityIconSmall" width="30" height="30"/>
</resources>
</document>

View File

@@ -0,0 +1,34 @@
//
// ForumView.swift
// My Mind
//
// Created by Alexander Davis on 31/03/2017.
// Copyright © 2017 Alexander Davis. All rights reserved.
//
import Foundation
import UIKit
class ForumViewController: UIViewController {
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
@IBOutlet var webView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let url = NSURL (string: "https://www.mymindforum.com");
let requestObj = NSURLRequest(url: url! as URL);
webView.loadRequest(requestObj as URLRequest);
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}

View File

@@ -0,0 +1,106 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@3x.png",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "iPad-settings@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "iPad-settings@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "iPad-spotlight@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "iPad-spotlight@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "iPad-pro-app.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Clock-50 (1).png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Back-50.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "check20.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "check40.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "check60.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "star20.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "star40.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "star60.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "graph150.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "graph300.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "graph450.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Engage50.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Engage100.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Engage150.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "engage30.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "engage60.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "engage90.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "button_folder.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "button_folder_open.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Brief-50 (1).png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icon_settings.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "CustomLoginButton240.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "CustomLoginButton480.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "CustomLoginButton720.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "money150.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "money300.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "money450.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Create New-50 (1).png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "theme_1.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "theme_2.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "theme_3.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "theme_4.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Some files were not shown because too many files have changed in this diff Show More