-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
D edited this page Aug 11, 2019
·
8 revisions
Maven:
<dependency>
<groupId>com.dsiner.lib</groupId>
<artifactId>aster</artifactId>
<version>2.0.9</version>
</dependency>
or Gradle:
implementation 'com.dsiner.lib:aster:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-http:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-okhttp3:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-retrofit:2.0.9'
or Gradle(OkHttp3 lite):
implementation 'com.dsiner.lib:aster:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-okhttp3:2.0.9'
or Gradle(Retrofit2 lite):
implementation 'com.dsiner.lib:aster:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-okhttp3:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-retrofit:2.0.9'
or Gradle(HttpURLConnection lite):
implementation 'com.dsiner.lib:aster:2.0.9'
implementation 'com.dsiner.lib:aster-adapter-http:2.0.9'
or: If you need or would prefer to use a different version of the library you should exclude "xx.xx.xx" from your dependency in your build.gradle file. For example:
dependencies {
implementation('com.dsiner.lib:aster:2.0.9', {
exclude group: 'com.dsiner.lib:aster', module: 'aster-base'
})
// Base
implementation('com.dsiner.lib:aster-base:2.0.9', {
exclude group: 'com.google.code.gson', module: 'gson'
})
implementation 'com.google.code.gson:gson:2.7'
// Adapter - OkHttp
implementation('com.dsiner.lib:aster-adapter-okhttp3:2.0.9', {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
exclude group: 'com.squareup.okhttp3', module: 'logging-interceptor'
})
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
// Adapter - Retrofit
implementation('com.dsiner.lib:aster-adapter-retrofit:2.0.9', {
exclude group: 'io.reactivex.rxjava2', module: 'rxjava'
exclude group: 'io.reactivex.rxjava2', module: 'rxandroid'
exclude group: 'com.squareup.retrofit2', module: 'retrofit'
exclude group: 'com.squareup.retrofit2', module: 'adapter-rxjava2'
exclude group: 'com.squareup.retrofit2', module: 'converter-gson'
exclude group: 'com.squareup.retrofit2', module: 'converter-scalars'
})
implementation 'io.reactivex.rxjava2:rxjava:2.1.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
}