Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 793b9b9

Browse files
committed
stop support iOS8
1 parent a3ab039 commit 793b9b9

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '8.0'
1+
platform :ios, '9.0'
22

33
use_frameworks!
44

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ StudyplusSDK-V2 is [Studyplus iOS SDK](https://github.com/studyplus/Studyplus-iO
55

66
## Requirements
77

8-
* iOS 8.0 or above
8+
* iOS 9.0 or above
99
* Swift 4.0 or above
1010

1111
## Dependency
@@ -33,17 +33,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
3333

3434
- If you don't have consumerKey and consumerSecret, please contact https://info.studyplus.co.jp/contact/studyplus-api
3535

36-
### Set up custom URL scheme
36+
### Set up custom URL scheme
3737

3838
- set __studyplus-*{your consumer key}*__ to URL Types. (ex. studyplus-MIoh79q7pfMbTUVA3BNsSeTaZRcOK3yg )
3939

4040
![xcode](https://github.com/studyplus/Studyplus-iOS-SDK-V2/blob/master/docs/set_url_scheme.png)
4141

42-
### Set up consumerKey and consumerSecret
42+
### Set up consumerKey and consumerSecret
4343

4444
- set __consumerKey__ and __consumerSecret__ in your Info.plist.
4545

46-
```plist
46+
```
4747
<key>StudyplusSDK</key>
4848
<dict>
4949
<key>consumerKey</key>
@@ -53,6 +53,17 @@ github "studyplus/Studyplus-iOS-SDK-V2"
5353
</dict>
5454
```
5555

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+
5667
### Initialize
5768

5869
```Swift
@@ -79,16 +90,6 @@ import StudyplusSDK_V2
7990

8091
class AppDelegate: UIResponder, UIApplicationDelegate {
8192

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-
9293
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
9394
return Studyplus.shared.handle(appDelegateUrl: url)
9495
}

StudyplusSDK.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@
655655
);
656656
INFOPLIST_FILE = StudyplusSDK/Info.plist;
657657
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
658+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
658659
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
659660
OTHER_SWIFT_FLAGS = "$(inherited)";
660661
PRODUCT_BUNDLE_IDENTIFIER = com.studyplus.StudyplusSDK;
@@ -682,6 +683,7 @@
682683
);
683684
INFOPLIST_FILE = StudyplusSDK/Info.plist;
684685
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
686+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
685687
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
686688
OTHER_SWIFT_FLAGS = "$(inherited)";
687689
PRODUCT_BUNDLE_IDENTIFIER = com.studyplus.StudyplusSDK;
@@ -723,7 +725,7 @@
723725
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
724726
DEVELOPMENT_TEAM = "";
725727
INFOPLIST_FILE = Demo/Info.plist;
726-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
728+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
727729
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
728730
OTHER_SWIFT_FLAGS = "$(inherited)";
729731
PRODUCT_BUNDLE_IDENTIFIER = com.studyplus.Demo;
@@ -740,7 +742,7 @@
740742
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
741743
DEVELOPMENT_TEAM = "";
742744
INFOPLIST_FILE = Demo/Info.plist;
743-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
745+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
744746
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
745747
OTHER_SWIFT_FLAGS = "$(inherited)";
746748
PRODUCT_BUNDLE_IDENTIFIER = com.studyplus.Demo;

0 commit comments

Comments
 (0)