Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade dependencies #167

Open
wants to merge 6 commits into
base: feature/add-mvvm-module
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions circle.yml → .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
version: 2
version: 2.1
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
- image: circleci/android:api-26
working_directory: ~/bigbang
environment:
JVM_OPTS: -Xmx3200m
resource_class: large
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -40,8 +39,8 @@ jobs:
- run:
name: Run Tests
command: ./gradlew test
lint
--max-workers=2
lint
--max-workers=2
- run:
name: Compile App Module
command: ./gradlew :app:compileLollipopAndAboveProductionReleaseSources --max-workers=1
Expand Down
19 changes: 8 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'com.google.gms:google-services:3.1.1'
classpath 'io.fabric.tools:gradle:1.24.3'
classpath 'io.fabric.tools:gradle:1.26.1'
}
}

Expand Down Expand Up @@ -129,11 +129,11 @@ dependencies {
api project(path: ':ui')

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:appcompat-v7:${libraryVersion.androidSupport}"
implementation "com.android.support:cardview-v7:${libraryVersion.androidSupport}"
implementation "com.android.support:design:${libraryVersion.androidSupport}"
implementation "com.android.support:recyclerview-v7:${libraryVersion.androidSupport}"
implementation "com.android.support:support-v13:${libraryVersion.androidSupport}"
implementation "androidx.appcompat:appcompat:${libraryVersion.androidSupport}"
implementation "androidx.cardview:cardview:${libraryVersion.androidSupport}"
implementation "com.google.android.material:material:${libraryVersion.androidSupport}"
implementation "androidx.recyclerview:recyclerview:${libraryVersion.androidSupport}"
implementation "androidx.legacy:legacy-support-v13:${libraryVersion.androidSupport}"
implementation "com.f2prateek.dart:dart:${libraryVersion.dart}"
implementation "com.f2prateek.dart:henson:${libraryVersion.dart}"
implementation "com.github.mrmike:Ok2Curl:${libraryVersion.ok2Curl}"
Expand All @@ -143,7 +143,6 @@ dependencies {
implementation "com.google.dagger:dagger:${libraryVersion.dagger}"
implementation "com.google.dagger:dagger-android-support:${libraryVersion.dagger}"
implementation "com.hannesdorfmann.fragmentargs:annotation:${libraryVersion.fragmentArgs}"
implementation "com.hannesdorfmann.fragmentargs:bundler-parceler:${libraryVersion.fragmentArgs}"
implementation "com.jakewharton.threetenabp:threetenabp:${libraryVersion.localDateBackport}"
implementation "com.jakewharton.timber:timber:${libraryVersion.timber}"
implementation "com.squareup.okhttp3:logging-interceptor:${libraryVersion.okHttp}"
Expand All @@ -152,13 +151,12 @@ dependencies {
implementation "com.squareup.retrofit2:adapter-rxjava2:${libraryVersion.retrofit}"
implementation "com.squareup.retrofit2:converter-gson:${libraryVersion.retrofit}"
implementation "com.squareup.retrofit2:retrofit:${libraryVersion.retrofit}"
implementation "com.trello.rxlifecycle2:rxlifecycle-components:${libraryVersion.rxLifecycle}"
implementation "com.trello.rxlifecycle2:rxlifecycle:${libraryVersion.rxLifecycle}"
implementation "com.trello.rxlifecycle3:rxlifecycle-components:${libraryVersion.rxLifecycle}"
implementation "com.trello.rxlifecycle3:rxlifecycle:${libraryVersion.rxLifecycle}"
implementation "com.wdullaer:materialdatetimepicker:${libraryVersion.materialDateTimePicker}"
implementation "io.reactivex.rxjava2:rxandroid:${libraryVersion.rxAndroid}"
implementation "io.reactivex.rxjava2:rxjava:${libraryVersion.rxJava}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libraryVersion.kotlin}"
implementation "org.parceler:parceler-api:${libraryVersion.parceler}"
implementation "com.github.square.picasso:picasso:${libraryVersion.picasso}"
implementation 'com.viewpagerindicator:library:2.4.1'

Expand All @@ -168,7 +166,6 @@ dependencies {
kapt "com.google.dagger:dagger-android-processor:${libraryVersion.dagger}"
kapt "com.google.dagger:dagger-compiler:${libraryVersion.dagger}"
kapt "com.hannesdorfmann.fragmentargs:processor:${libraryVersion.fragmentArgs}"
kapt "org.parceler:parceler:${libraryVersion.parceler}"

compileOnly 'javax.annotation:jsr250-api:1.0'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.xmartlabs.template.module

import com.xmartlabs.bigbang.ui.BaseFragment
import com.xmartlabs.bigbang.ui.BaseFragment_MembersInjector
import dagger.Module
import dagger.android.ContributesAndroidInjector

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.xmartlabs.template.ui.common

import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView

/** An OnDemandLoadingScrollListener for recycler view pagination */
abstract class OnDemandLoadingScrollListener : RecyclerView.OnScrollListener() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.xmartlabs.template.ui.common

import android.support.annotation.Dimension
import android.support.annotation.Px
import android.support.v4.widget.NestedScrollView
import android.support.v7.widget.RecyclerView
import androidx.annotation.Dimension
import androidx.annotation.Px
import androidx.core.widget.NestedScrollView
import androidx.recyclerview.widget.RecyclerView
import com.xmartlabs.bigbang.core.extensions.dpToPx

/** An OnDemandLoadingScrollListener for recycler view pagination */
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="UnusedResources"
>

<android.support.design.widget.CoordinatorLayout
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>

<android.support.v7.widget.Toolbar
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:ignore="UnusedIds"
style="@style/Toolbar"
>

<android.support.design.widget.TabLayout
<com.google.android.material.tabs.TabLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Toolbar.TabLayout"
/>

</android.support.v7.widget.Toolbar>
</androidx.appcompat.widget.Toolbar>

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

</android.support.design.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

</android.support.v4.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.41'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61'
}
}

Expand Down
10 changes: 5 additions & 5 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
targetSdkVersion project.ext.targetSdkVersion
versionCode versionCodeId
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
Expand All @@ -47,17 +47,17 @@ android {
}

dependencies {
androidTestImplementation("com.android.support.test.espresso:espresso-core:${libraryVersion.espresso}") {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation "com.crittercism.dexmaker:dexmaker:${libraryVersion.dexmaker}"
androidTestImplementation "com.crittercism.dexmaker:dexmaker-dx:${libraryVersion.dexmaker}"
androidTestImplementation "com.crittercism.dexmaker:dexmaker-mockito:${libraryVersion.dexmaker}"
androidTestImplementation "junit:junit:${libraryVersion.junit}"
androidTestImplementation "org.mockito:mockito-core:${libraryVersion.mockito}"
api "com.android.support:appcompat-v7:${libraryVersion.androidSupport}"
api "com.android.support:design:${libraryVersion.androidSupport}"
api "com.android.support:support-v13:${libraryVersion.androidSupport}"
api "androidx.appcompat:appcompat:${libraryVersion.androidSupport}"
api "com.google.android.material:material:${libraryVersion.androidSupport}"
api "androidx.legacy:legacy-support-v13:${libraryVersion.androidSupport}"
api "com.f2prateek.dart:dart:${libraryVersion.dart}"
api "com.f2prateek.dart:henson:${libraryVersion.dart}"
api "com.github.mrmike:Ok2Curl:${libraryVersion.ok2Curl}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.xmartlabs.bigbang.core

import android.content.res.Resources
import android.support.annotation.DimenRes
import android.support.annotation.Dimension
import android.support.test.runner.AndroidJUnit4
import android.util.DisplayMetrics
import androidx.annotation.DimenRes
import androidx.annotation.Dimension
import androidx.test.runner.AndroidJUnit4
import com.xmartlabs.bigbang.core.extensions.displayMetrics
import com.xmartlabs.bigbang.core.extensions.dpToPx
import com.xmartlabs.bigbang.core.extensions.pxToDp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.xmartlabs.bigbang.core.controller

import android.content.SharedPreferences
import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.model.SessionType

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.controller

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult

import io.reactivex.Completable
import io.reactivex.Maybe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.controller

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.extensions.applyIoSchedulers
import com.xmartlabs.bigbang.core.extensions.observeOnIo
import com.xmartlabs.bigbang.core.extensions.subscribeOnIo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.controller

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.model.EntityWithId
import io.reactivex.Maybe
import io.reactivex.Single
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.xmartlabs.bigbang.core.controller

import android.content.SharedPreferences
import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.google.gson.Gson
import javax.inject.Inject

Expand Down
13 changes: 5 additions & 8 deletions core/src/main/java/com/xmartlabs/bigbang/core/di/AppInjector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ package com.xmartlabs.bigbang.core.di
import android.app.Activity
import android.app.Application
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import android.support.v4.app.FragmentManager
import dagger.android.AndroidInjection
import dagger.android.HasActivityInjector
import dagger.android.support.AndroidSupportInjection
Expand Down Expand Up @@ -39,14 +36,14 @@ object AppInjector {
if (activity is HasSupportFragmentInjector) {
AndroidInjection.inject(activity)
}
if (activity is FragmentActivity) {
if (activity is androidx.fragment.app.FragmentActivity) {
activity.supportFragmentManager
.registerFragmentLifecycleCallbacks(
object : FragmentManager.FragmentLifecycleCallbacks() {
object : androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks() {
override fun onFragmentCreated(
fm: FragmentManager,
f: Fragment,
savedInstanceState: Bundle?
fm: androidx.fragment.app.FragmentManager,
f: androidx.fragment.app.Fragment,
savedInstanceState: Bundle?
) {
if (f is Injectable) {
AndroidSupportInjection.inject(f)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.xmartlabs.bigbang.core.extensions

import android.content.Context
import android.support.annotation.ColorRes
import android.support.v4.content.ContextCompat
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat

/** Extension object that contains all related color extensions that make use of [Context] */
val Context.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ fun Context.copyTextToClipboard(text: String) {
} else {
val clipboard = getSystemService(Context.CLIPBOARD_SERVICE) as android.content.ClipboardManager
val clip = android.content.ClipData.newPlainText("Copied Text", text)
clipboard.primaryClip = clip
clipboard.setPrimaryClip(clip)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.xmartlabs.bigbang.core.extensions

import android.content.res.Resources
import android.content.res.Resources.Theme
import android.support.annotation.AttrRes
import android.support.annotation.Dimension
import android.support.annotation.VisibleForTesting
import android.support.v7.app.ActionBar
import androidx.annotation.AttrRes
import androidx.annotation.Dimension
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.ActionBar

@VisibleForTesting
var displayMetrics = Resources.getSystem().displayMetrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.support.annotation.RequiresPermission
import android.support.annotation.StringRes
import androidx.annotation.RequiresPermission
import androidx.annotation.StringRes

object IntentHelper {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package com.xmartlabs.bigbang.core.helper.ui
import android.app.Activity
import android.content.ContentResolver
import android.content.Context
import android.support.annotation.DrawableRes
import android.support.design.widget.TextInputLayout
import android.support.v4.util.Pair
import android.text.InputType
import android.text.TextUtils
import android.widget.ArrayAdapter
import android.widget.EditText
import android.widget.Spinner
import androidx.annotation.DrawableRes
import androidx.core.util.Pair
import com.google.android.gms.common.ConnectionResult
import com.google.android.gms.common.GoogleApiAvailability
import java.util.Locale
import com.google.android.material.textfield.TextInputLayout
import java.util.*

object UiHelper {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.xmartlabs.bigbang.core.repository

import android.content.SharedPreferences
import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.model.SessionType

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.repository

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult

import io.reactivex.Completable
import io.reactivex.Maybe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.repository

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.extensions.applyIoSchedulers
import com.xmartlabs.bigbang.core.extensions.observeOnIo
import com.xmartlabs.bigbang.core.extensions.subscribeOnIo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xmartlabs.bigbang.core.repository

import android.support.annotation.CheckResult
import androidx.annotation.CheckResult
import com.xmartlabs.bigbang.core.model.EntityWithId
import io.reactivex.Maybe
import io.reactivex.Single
Expand Down
Loading