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

Commit 4c81112

Browse files
committed
add print for carthage
1 parent a6b2bf2 commit 4c81112

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

Demo/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0.5</string>
18+
<string>1.0.6</string>
1919
<key>CFBundleURLTypes</key>
2020
<array>
2121
<dict>

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ github "studyplus/Studyplus-iOS-SDK-V2"
5656
### Initialize
5757

5858
```Swift
59+
60+
// when carthage is StudyplusSDK, cocoapods is StudyplusSDK_V2
5961
import StudyplusSDK_V2
6062

6163
class ViewController: UIViewController, StudyplusLoginDelegate {
@@ -71,6 +73,8 @@ class ViewController: UIViewController, StudyplusLoginDelegate {
7173

7274
### Login
7375
```Swift
76+
77+
// when carthage is StudyplusSDK, cocoapods is StudyplusSDK_V2
7478
import StudyplusSDK_V2
7579

7680
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -92,6 +96,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
9296
```
9397

9498
```Swift
99+
100+
// when carthage is StudyplusSDK, cocoapods is StudyplusSDK_V2
95101
import StudyplusSDK_V2
96102

97103
class ViewController: UIViewController, StudyplusLoginDelegate {
@@ -123,6 +129,8 @@ class ViewController: UIViewController, StudyplusLoginDelegate {
123129
### Post studyRecord to Studyplus
124130

125131
```Swift
132+
133+
// when carthage is StudyplusSDK, cocoapods is StudyplusSDK_V2
126134
import StudyplusSDK_V2
127135

128136
class ViewController: UIViewController, StudyplusLoginDelegate {

StudyplusSDK-V2.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "StudyplusSDK-V2"
3-
s.version = "1.0.5"
3+
s.version = "1.0.6"
44
s.summary = "StudyplusSDK-V2 is Studyplus iOS SDK for Swift"
55
s.homepage = "http://info.studyplus.jp"
66
s.license = { :type => "MIT", :file => "LICENSE" }

StudyplusSDK/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0.5</string>
18+
<string>1.0.6</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

StudyplusSDK/Studyplus.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ final public class Studyplus {
234234
let consumerSecret = data["consumerSecret"] else {
235235

236236
assert(false, "*** Pleease set consumerKey and consumerSecret in your Info.plist. ***")
237+
print("*** Pleease set consumerKey and consumerSecret in your Info.plist. ***")
238+
237239
self.consumerKey = ""
238240
self.consumerSecret = ""
239241
return
@@ -242,6 +244,8 @@ final public class Studyplus {
242244
if consumerKey == "set_your_consumerKey" || consumerSecret == "set_your_consumerSecret" {
243245

244246
assert(false, "*** Pleease set consumerKey and consumerSecret in Info.plist. ***")
247+
print("*** Pleease set consumerKey and consumerSecret in your Info.plist. ***")
248+
245249
self.consumerKey = ""
246250
self.consumerSecret = ""
247251
return

0 commit comments

Comments
 (0)