-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Google-Developer-Student-Clubs-TUK/feat/s…
…ignUp Feat/sign up
- Loading branch information
Showing
102 changed files
with
19,819 additions
and
24 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?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>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ import SwiftUI | |
struct GOiOSApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
ScheduleUIView() | ||
SignInView() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// SignIn.swift | ||
// GOiOS | ||
// | ||
// Created by /Chynmn/M1 pro—̳͟͞͞♡ on 2022/12/25. | ||
// | ||
|
||
import Foundation | ||
|
||
func setItemKeyChain(userId: String, rft: String){ | ||
let previousQuery: [CFString: Any] = [kSecClass: kSecClassIdentity, kSecAttrAccount: userId] | ||
|
||
let updateQuery: [CFString: Any] = [kSecValueData: rft] | ||
let status = SecItemUpdate(previousQuery as CFDictionary, updateQuery as CFDictionary) | ||
|
||
if status == errSecSuccess { | ||
print("Update!") | ||
} else { | ||
print("Update fail") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// SignUp.swift | ||
// GOiOS | ||
// | ||
// Created by /Chynmn/M1 pro—̳͟͞͞♡ on 2022/12/22. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
func sendPostRequest(_ url: String, parameters: [String: String], completion: @escaping ([String: Any]?, Error?) -> Void) { | ||
let targetUrl = URL(string: url) | ||
let paramData = try? JSONSerialization.data(withJSONObject: parameters) | ||
|
||
var request = URLRequest(url: targetUrl!) | ||
request.httpMethod = "POST" | ||
request.setValue("application/json", forHTTPHeaderField: "Content-Type") | ||
request.httpBody = paramData | ||
|
||
let task = URLSession.shared.dataTask(with: request) { data, response, error in | ||
guard | ||
let data = data, // is there data | ||
let response = response as? HTTPURLResponse, // is there HTTP response | ||
200 ..< 300 ~= response.statusCode, // is statusCode 2XX | ||
error == nil // was there no error | ||
else { | ||
completion(nil, error) | ||
return | ||
} | ||
|
||
let responseObject = (try? JSONSerialization.jsonObject(with: data)) as? [String: Any] | ||
completion(responseObject, nil) | ||
} | ||
task.resume() | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
|
||
target 'GOiOS' do | ||
# Comment the next line if you don't want to use dynamic frameworks | ||
use_frameworks! | ||
|
||
# Pods for GOiOS | ||
pod 'SwiftyJSON' | ||
pod 'Alamofire', '~> 5.5' | ||
|
||
target 'GOiOSTests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
end | ||
|
||
target 'GOiOSUITests' do | ||
# Pods for testing | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
PODS: | ||
- Alamofire (5.6.4) | ||
- SwiftyJSON (5.0.1) | ||
|
||
DEPENDENCIES: | ||
- Alamofire (~> 5.5) | ||
- SwiftyJSON | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Alamofire | ||
- SwiftyJSON | ||
|
||
SPEC CHECKSUMS: | ||
Alamofire: 4e95d97098eacb88856099c4fc79b526a299e48c | ||
SwiftyJSON: 2f33a42c6fbc52764d96f13368585094bfd8aa5e | ||
|
||
PODFILE CHECKSUM: 70184d948cb582dabc5b70574c54776ca1894f3c | ||
|
||
COCOAPODS: 1.11.3 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.