@@ -5,7 +5,7 @@ StudyplusSDK-V2 is [Studyplus iOS SDK](https://github.com/studyplus/Studyplus-iO
5
5
6
6
## Requirements
7
7
8
- * iOS 8 .0 or above
8
+ * iOS 9 .0 or above
9
9
* Swift 4.0 or above
10
10
11
11
## Dependency
@@ -33,17 +33,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
33
33
34
34
- If you don't have consumerKey and consumerSecret, please contact https://info.studyplus.co.jp/contact/studyplus-api
35
35
36
- ### Set up custom URL scheme
36
+ ### ① Set up custom URL scheme
37
37
38
38
- set __ studyplus-* {your consumer key}* __ to URL Types. (ex. studyplus-MIoh79q7pfMbTUVA3BNsSeTaZRcOK3yg )
39
39
40
40
![ xcode] ( https://github.com/studyplus/Studyplus-iOS-SDK-V2/blob/master/docs/set_url_scheme.png )
41
41
42
- ### Set up consumerKey and consumerSecret
42
+ ### ② Set up consumerKey and consumerSecret
43
43
44
44
- set __ consumerKey__ and __ consumerSecret__ in your Info.plist.
45
45
46
- ``` plist
46
+ ```
47
47
<key>StudyplusSDK</key>
48
48
<dict>
49
49
<key>consumerKey</key>
@@ -53,6 +53,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
53
53
</dict>
54
54
```
55
55
56
+ ### ③ Set up LSApplicationQueriesSchemes
57
+
58
+ - Set LSApplicationQueriesSchemes in your info.plist for checking if studyplus is installed.
59
+
60
+ ```
61
+ <key>LSApplicationQueriesSchemes</key>
62
+ <array>
63
+ <string>studyplus</string>
64
+ </array>
65
+ ```
66
+
56
67
### Initialize
57
68
58
69
``` Swift
@@ -79,16 +90,6 @@ import StudyplusSDK_V2
79
90
80
91
class AppDelegate : UIResponder , UIApplicationDelegate {
81
92
82
- // ...
83
-
84
- // MARK: - iOS8
85
-
86
- func application (_ application : UIApplication, open url : URL, sourceApplication : String ? , annotation : Any ) -> Bool {
87
- return Studyplus.shared .handle (appDelegateUrl : url)
88
- }
89
-
90
- // MARK: - iOS9 or above
91
-
92
93
func application (_ app : UIApplication, open url : URL, options : [UIApplicationOpenURLOptionsKey : Any ] = [: ]) -> Bool {
93
94
return Studyplus.shared .handle (appDelegateUrl : url)
94
95
}
0 commit comments