Skip to content

Commit e03c0f4

Browse files
author
Prem Ankur
authored
Updated README with 1.1.2 release usage
1 parent a560431 commit e03c0f4

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
SWAPI-Android-SDK (revived)
22
=================
33

4+
[![](https://jitpack.io/v/premacck/Swapi-SDK-revived.svg)](https://jitpack.io/#premacck/Swapi-SDK-revived)
5+
46
The SWAPI (Star Wars API) SDK for Android, converted to kotlin, revived from the good old SDK at https://github.com/Oleur/SWAPI-Android-SDK
57

68
SWAPI SDk requires at minimum Java 8 or Android API 21.
@@ -20,12 +22,13 @@ allprojects {
2022

2123
- For the SDK Library:
2224
```gradle
23-
implementation 'com.github.premacck.Swapi-SDK-revived:lib:release-1.0.0'
25+
implementation 'com.github.premacck.Swapi-SDK-revived:Swapi-Revived:release-1.1.2'
2426
```
2527

2628
- For the UI components (without the Application class):
29+
(You can use this to quickly implement the star wars sample in your project, which could be a library sample)
2730
```gradle
28-
implementation 'com.github.premacck.Swapi-SDK-revived:sample-components:release-1.0.0'
31+
implementation 'com.github.premacck.Swapi-SDK-revived:swapi-sample-components:release-1.1.2'
2932
```
3033

3134
### Maven
@@ -40,12 +43,21 @@ implementation 'com.github.premacck.Swapi-SDK-revived:sample-components:release-
4043
</repositories>
4144
```
4245

43-
- Add the dependency
46+
- Add the dependency (for SDK)
47+
```XML
48+
<dependency>
49+
<groupId>com.github.premacck.Swapi-SDK-revived</groupId>
50+
<artifactId>Swapi-Revived</artifactId>
51+
<version>release-1.1.1</version>
52+
</dependency>
53+
```
54+
55+
- Add the dependency (for UI components)
4456
```XML
4557
<dependency>
4658
<groupId>com.github.premacck.Swapi-SDK-revived</groupId>
47-
<artifactId>sample-components</artifactId>
48-
<version>release-1.0.0</version>
59+
<artifactId>swapi-sample-components</artifactId>
60+
<version>release-1.1.1</version>
4961
</dependency>
5062
```
5163

@@ -97,5 +109,4 @@ StarWarsSdk.repo.getAllPlanets(2) {
97109
}
98110
```
99111

100-
Or you can Create a common `RetrofitCallBack`, as implemented in [ListActivity](https://github.com/premacck/Swapi-SDK-revived/blob/main/sample-components/src/main/java/com/prembros/swapi/sample_components/ListActivity.kt)
101-
112+
Or you can Create a common `retrofitCallBack()`, as implemented in [SwapiListActivity](https://github.com/premacck/Swapi-SDK-revived/blob/main/swapi-sample-components/src/main/java/com/prembros/swapi/sample_components/ui/SwapiListActivity.kt)

0 commit comments

Comments
 (0)