Skip to content

Commit

Permalink
Converted to dynamic framework project.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiiaiurok-okta authored and IldarAbdullin-okta committed May 29, 2019
1 parent 5a7d96a commit 69dee7d
Show file tree
Hide file tree
Showing 73 changed files with 1,467 additions and 1,093 deletions.
4 changes: 0 additions & 4 deletions Example/Okta/AppDelegate.swift → Example/AppDelegate.swift
Expand Up @@ -31,10 +31,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
guard #available(iOS 11, *) else {
return oktaOidc?.resume(url, options: options) ?? false
}

return false
}
}
File renamed without changes.
25 changes: 25 additions & 0 deletions Example/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Example/Okta/Info.plist → Example/Info.plist
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Okta Oidc Example</string>
<string>OktaOidcExample</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
File renamed without changes.
948 changes: 0 additions & 948 deletions Example/Okta.xcodeproj/project.pbxproj

This file was deleted.

41 changes: 0 additions & 41 deletions Example/Okta/Base.lproj/LaunchScreen.xib

This file was deleted.

26 changes: 0 additions & 26 deletions Example/Podfile

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions Okta/AppAuth/OktaOidc.h
Expand Up @@ -16,6 +16,7 @@
limitations under the License.
*/

#import "AppAuthCore.h"
#import "OIDAuthState.h"
#import "OIDAuthStateChangeDelegate.h"
#import "OIDAuthStateErrorDelegate.h"
Expand All @@ -42,6 +43,11 @@
#import "OIDURLSessionProvider.h"
#import "OIDEndSessionRequest.h"
#import "OIDEndSessionResponse.h"
#import "OIDExternalUserAgentIOS.h"
#import "OIDClientMetadataParameters.h"
#import "OIDDefines.h"
#import "OIDFieldMapping.h"
#import "OIDURLQueryComponent.h"

/*! @mainpage AppAuth for iOS and macOS
Expand Down
2 changes: 1 addition & 1 deletion Okta/OktaOidc/OktaOidcUtils.swift
Expand Up @@ -10,7 +10,7 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

import Foundation
import UIKit

open class OktaOidcUtils: NSObject {

Expand Down
2 changes: 2 additions & 0 deletions Okta/OktaOidc/Tasks/OktaOidcSignIn.swift
Expand Up @@ -10,6 +10,8 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

import UIKit

class OktaOidcSignInTask: OktaOidcTask<OIDAuthState>, OktaOidcUserSessionTask {

private let presenter: UIViewController
Expand Down
2 changes: 2 additions & 0 deletions Okta/OktaOidc/Tasks/OktaOidcSignOut.swift
Expand Up @@ -10,6 +10,8 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

import UIKit

class OktaOidcSignOutTask: OktaOidcTask<Void>, OktaOidcUserSessionTask {
private let idToken: String
private let presenter: UIViewController
Expand Down
22 changes: 22 additions & 0 deletions OktaOidcUITests/Info.plist
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
34 changes: 34 additions & 0 deletions OktaOidcUITests/OktaOidcUITests.swift
@@ -0,0 +1,34 @@
//
// OktaOidcUITests.swift
// OktaOidcUITests
//
// Created by Anastasia Yurok on 5/28/19.
// Copyright © 2019 Okta. All rights reserved.
//

import XCTest

class OktaOidcUITests: XCTestCase {

override func setUp() {
// Put setup code here. This method is called before the invocation of each test method in the class.

// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false

// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
XCUIApplication().launch()

// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}

override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() {
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -177,6 +177,6 @@ class OktaUITests: XCTestCase {
return
}

XCTAssertTrue(errorDescription.contains("Authorization Error"))
XCTAssertTrue(errorDescription.contains("Unable to get authorization code."))
}
}
File renamed without changes.

0 comments on commit 69dee7d

Please sign in to comment.