Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/pre-release'

# Conflicts:
#	README.md
doganekici 5 anni fa
parent
commit
4025c21bbf

+ 26 - 0
.gitignore

@@ -0,0 +1,26 @@
+# Xcode
+#
+# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
+
+## User settings
+xcuserdata/
+
+## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
+*.xcscmblueprint
+*.xccheckout
+
+## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
+build/
+DerivedData/
+*.moved-aside
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+
+## Gcc Patch
+/*.gcno

+ 2 - 2
Appcircle.xcodeproj/project.pbxproj

@@ -460,7 +460,7 @@
 					"@executable_path/Frameworks",
 				);
 				MARKETING_VERSION = 1.2;
-				PRODUCT_BUNDLE_IDENTIFIER = com.appcircle.Appcircle;
+				PRODUCT_BUNDLE_IDENTIFIER = io.appcircle.Appcircle;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
@@ -481,7 +481,7 @@
 					"@executable_path/Frameworks",
 				);
 				MARKETING_VERSION = 1.2;
-				PRODUCT_BUNDLE_IDENTIFIER = com.appcircle.Appcircle;
+				PRODUCT_BUNDLE_IDENTIFIER = io.appcircle.Appcircle;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};

BIN
Appcircle.xcodeproj/project.xcworkspace/xcuserdata/doganekici.xcuserdatad/UserInterfaceState.xcuserstate


+ 98 - 0
Appcircle.xcodeproj/xcshareddata/xcschemes/Appcircle.xcscheme

@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "1130"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "C335FD432347815B00627CB4"
+               BuildableName = "Appcircle.app"
+               BlueprintName = "Appcircle"
+               ReferencedContainer = "container:Appcircle.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 = "C335FD5E2347815C00627CB4"
+               BuildableName = "AppcircleTests.xctest"
+               BlueprintName = "AppcircleTests"
+               ReferencedContainer = "container:Appcircle.xcodeproj">
+            </BuildableReference>
+         </TestableReference>
+         <TestableReference
+            skipped = "NO">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "C335FD692347815C00627CB4"
+               BuildableName = "AppcircleUITests.xctest"
+               BlueprintName = "AppcircleUITests"
+               ReferencedContainer = "container:Appcircle.xcodeproj">
+            </BuildableReference>
+         </TestableReference>
+      </Testables>
+   </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 = "C335FD432347815B00627CB4"
+            BuildableName = "Appcircle.app"
+            BlueprintName = "Appcircle"
+            ReferencedContainer = "container:Appcircle.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </LaunchAction>
+   <ProfileAction
+      buildConfiguration = "Release"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "C335FD432347815B00627CB4"
+            BuildableName = "Appcircle.app"
+            BlueprintName = "Appcircle"
+            ReferencedContainer = "container:Appcircle.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 0 - 14
Appcircle.xcodeproj/xcuserdata/doganekici.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -1,14 +0,0 @@
-<?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>Appcircle.xcscheme_^#shared#^_</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>0</integer>
-		</dict>
-	</dict>
-</dict>
-</plist>

+ 4 - 4
Appcircle/Info.plist

@@ -2,6 +2,10 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+	<key>API_KEY</key>
+	<string>$(API_KEY)</string>
+	<key>API_URL</key>
+	<string>$(API_URL)</string>
 	<key>CFBundleDevelopmentRegion</key>
 	<string>$(DEVELOPMENT_LANGUAGE)</string>
 	<key>CFBundleExecutable</key>
@@ -60,9 +64,5 @@
 		<string>UIInterfaceOrientationLandscapeLeft</string>
 		<string>UIInterfaceOrientationLandscapeRight</string>
 	</array>
-	<key>API_URL</key>
-	<string>$(API_URL)</string>
-	<key>API_KEY</key>
-	<string>$(API_KEY)</string>
 </dict>
 </plist>

+ 20 - 0
AppcircleTests/AppcircleTests.m

@@ -27,6 +27,26 @@
     // Use XCTAssert and related functions to verify your tests produce the correct results.
 }
 
+- (void)testArrayCount {
+    NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
+    XCTAssertEqual(array.count, 2);
+}
+
+- (void)testArrayFirstObject {
+    NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
+    XCTAssertEqual(array.firstObject, @"First");
+}
+
+- (void)testArrayLastObject {
+    NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
+    XCTAssertEqual(array.lastObject, @"Second");
+}
+
+- (void)testType {
+    NSArray *array = [[NSArray alloc] initWithObjects:@"First",@"Second", nil];
+    XCTAssert([array isKindOfClass:[NSArray class]]);
+}
+
 - (void)testPerformanceExample {
     // This is an example of a performance test case.
     [self measureBlock:^{

+ 11 - 3
AppcircleUITests/AppcircleUITests.m

@@ -31,9 +31,17 @@
     // UI tests must launch the application that they test.
     XCUIApplication *app = [[XCUIApplication alloc] init];
     [app launch];
-
-    // Use recording to get started writing UI tests.
-    // Use XCTAssert and related functions to verify your tests produce the correct results.
+    
+    XCTAssertTrue(app.buttons[@"Next Page"].exists);
+    [app.buttons[@"Next Page"] tap];
+    XCTAssertTrue(app.staticTexts[@"Appcircle.io"].exists);
+    
+    sleep(1);
+    
+    XCTAttachment *attachment = [XCTAttachment attachmentWithScreenshot:[app screenshot]];
+    attachment.name = @"Attachment";
+    attachment.lifetime = XCTAttachmentLifetimeKeepAlways;
+    [self addAttachment:attachment];
 }
 
 - (void)testLaunchPerformance {

+ 12 - 1
README.md

@@ -1 +1,12 @@
-# Appcircle Sample App for iOS
+# Appcircle Sample App for Native (Obj-C/Swift) iOS Builds
+This is a sample Smartface app for testing iOS App build functionality in Appcircle. As an Objective-C project, this repository can be used for iOS builds.
+
+## Using the Appcircle Build Module
+You can find more information about the Appcircle Build Module and how to connect a Git repository in the [Appcircle Documentation](https://docs.appcircle.io/build/).
+
+## Contribution
+You can  contribute to this repository with fixes and feature updates that do not deviate from the original purpose of the app, which is to demonstrate how the Appcircle Build Module is used.
+
+## Reporting an Issue / Reaching Us
+If you encounter any issues related with the app in this repository, you can raise an issue here.
+If you have any other issues or questions about Appcircle, you can contact us via our [contact form on Appcircle.io](https://appcircle.io/support) or join our Slack community at [slack.appcircle.io](slack.appcircle.io)