File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,21 @@ import KeychainAccess
35
35
Studyplusアカウントとの連携、連携解除、勉強記録の投稿ができます。
36
36
*/
37
37
final public class Studyplus {
38
+
39
+ /**
40
+ Returns studyplus sdk version.
41
+
42
+ StudyplusSDKのバージョン情報を返します
43
+ */
44
+ public static let SDKVersion : String = {
45
+ guard let version = Bundle . main. infoDictionary ? [ " CFBundleShortVersionString " ] as? String else {
46
+ assert ( false , " StudyplusSDK: *** bundle cannot be loaded, Please check installation in README.md. *** " )
47
+ print ( " StudyplusSDK: *** Please check installation in README.md. *** " )
48
+ return " "
49
+ }
50
+
51
+ return version
52
+ } ( )
38
53
39
54
/**
40
55
Returns the shared defaults object.
@@ -258,7 +273,6 @@ final public class Studyplus {
258
273
// MARK: - private method
259
274
260
275
private init ( ) {
261
-
262
276
guard let data = Bundle . main. infoDictionary ? [ " StudyplusSDK " ] as? [ String : String ] ,
263
277
let consumerKey = data [ " consumerKey " ] ,
264
278
let consumerSecret = data [ " consumerSecret " ] else {
You can’t perform that action at this time.
0 commit comments