Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Commit 3f3401a

Browse files
committed
Version 2.0.2, READ ME更新
1 parent 0f6a4ef commit 3f3401a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Studyplus-Android-SDK-V2
22

3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/jp.studyplus.android.sdk/studyplus-android-sdk2/badge.svg)](https://maven-badges.herokuapp.com/maven-central/jp.studyplus.android.sdk/studyplus-android-sdk2)
4+
35
## Requirements
46
- Android 4.1+
57
- [Studyplus App 2.14+](https://play.google.com/store/apps/details?id=jp.studyplus.android.app)
@@ -8,23 +10,23 @@
810
## Import in your Project
911

1012
### Gradle file (app)
13+
1114
```
1215
repositories {
1316
mavenCentral()
1417
}
1518
dependencies {
16-
implementation ('jp.studyplus.android.sdk:studyplus-android-sdk2:2.0.0@aar') {
17-
transitive = true
18-
}
19+
implementation 'jp.studyplus.android.sdk:studyplus-android-sdk2:2.0.2'
1920
}
2021
```
2122

2223
### Maven
24+
2325
```
2426
<dependency>
2527
<groupId>jp.studyplus.android.sdk</groupId>
2628
<artifactId>studyplus-android-sdk2</artifactId>
27-
<version>2.0.0</version>
29+
<version>2.0.2</version>
2830
</dependency>
2931
```
3032

@@ -33,13 +35,15 @@ or download the latest JAR [via Central Repository](http://search.maven.org/#sea
3335
## Usage
3436

3537
### Setup
38+
3639
```
3740
Studyplus.instance.setup("consumer_key", "consumer_secret")
3841
```
3942

4043
### Authenticate
4144

4245
Open an Activity to connect with Studyplus.
46+
4347
```
4448
try {
4549
Studyplus.instance.startAuth(this@MainActivity, REQUEST_CODE_AUTH)
@@ -50,6 +54,7 @@ try {
5054
```
5155

5256
Then save its result.
57+
5358
```
5459
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
5560
when (requestCode) {
@@ -64,7 +69,9 @@ override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
6469
```
6570

6671
### Post a record to Studyplus
72+
6773
Create a record and post.
74+
6875
```
6976
val record = StudyRecordBuilder()
7077
.setComment("勉強した!!!")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
VERSION_MAJOR = 2
22
VERSION_MINOR = 0
3-
VERSION_PATCH = 1
3+
VERSION_PATCH = 2
44

5-
DEBUG_API_ENDPOINT =
5+
DEBUG_API_ENDPOINT =

0 commit comments

Comments
 (0)