Skip to content

Commit

Permalink
upgraded gradle and kotlin, support lib and rxjava, compileSDK & buil…
Browse files Browse the repository at this point in the history
…dtools
  • Loading branch information
Zeyad-37 committed Nov 13, 2018
1 parent dfe2281 commit a2880fc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
project.ext {
supportLibrary = '27.1.1'
supportLibrary = '28.0.0'

rxbinding = '2.1.1'
okhttpVersion = '3.11.0'
archComp = '1.1.1'
room_version = '1.1.1'
rxjava = '2.2.0'
rxjava = '2.2.3'
rxAndroid = '2.1.0'
genericRecyclerViewAdapter = '1.9.0'
genericRecyclerViewAdapter = '1.9.1'
rxredux = '2.6.0'
glide = '4.0.0'
lottie = '2.5.0'
Expand All @@ -31,7 +31,7 @@ project.ext {

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.61'
ext.kotlin_version = '1.3.0'
repositories {
jcenter()
google()
Expand All @@ -41,7 +41,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
// classpath 'com.google.gms:google-services:3.1.0'
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jul 06 07:56:05 CEST 2018
#Tue Nov 13 10:53:47 EET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
6 changes: 3 additions & 3 deletions sampleApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
applicationId "com.zeyad.usecase.accesslayer"
minSdkVersion 21
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
8 changes: 4 additions & 4 deletions usecases/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ apply plugin: 'realm-android'
apply plugin: "net.ltgt.errorprone"

android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 17
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "com.zeyad.usecases.integration.AndroidRobolectricRunner"
Expand Down Expand Up @@ -84,7 +84,7 @@ dependencies {

// Rx
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
api 'io.reactivex.rxjava2:rxjava:2.2.0'
api 'io.reactivex.rxjava2:rxjava:2.2.3'
implementation 'com.jakewharton.rx2:replaying-share-kotlin:2.0.1'

// Cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class DataServiceFactoryTest {
@Test
@Throws(Exception::class)
fun init() {
val instance = DataServiceFactory(mDataServiceConfig).instance
DataServiceFactory(mDataServiceConfig)
val instance = DataServiceFactory.dataService
assertNotNull(com.zeyad.usecases.Config.apiConnection)
assertNotNull(com.zeyad.usecases.Config.backgroundThread)
assertNotNull(com.zeyad.usecases.Config.gson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ public class APIIntegrationTest {
@Before
public void setUp() {
RESTMockServer.reset();
dataService = new DataServiceFactory(new DataServiceConfig.Builder(RuntimeEnvironment.application)
new DataServiceFactory(new DataServiceConfig.Builder(RuntimeEnvironment.application)
.baseUrl(RESTMockServer.getUrl())
// .withRealm() Todo Fix
// .withCache(3, TimeUnit.MINUTES)
.build())
.getInstance();
.build());
dataService = DataServiceFactory.Companion.getDataService();
users = new ArrayList<>(2);
testUser = new User();
testUser.setAvatarUrl("https://avatars2.githubusercontent.com/u/5938141?v=3");
Expand Down

0 comments on commit a2880fc

Please sign in to comment.