upgrade libs
This commit is contained in:
parent
29d1d91de6
commit
b0736b5246
|
@ -8,6 +8,7 @@ import android.content.pm.PackageManager
|
||||||
import android.provider.Settings
|
import android.provider.Settings
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
import androidx.core.app.ActivityCompat
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
|
@ -25,6 +26,7 @@ import info.nightscout.androidaps.diaconn.events.EventDiaconnG8PumpLogReset
|
||||||
import info.nightscout.androidaps.events.EventAppExit
|
import info.nightscout.androidaps.events.EventAppExit
|
||||||
import info.nightscout.androidaps.interfaces.Config
|
import info.nightscout.androidaps.interfaces.Config
|
||||||
import info.nightscout.androidaps.interfaces.ImportExportPrefs
|
import info.nightscout.androidaps.interfaces.ImportExportPrefs
|
||||||
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import info.nightscout.androidaps.logging.UserEntryLogger
|
import info.nightscout.androidaps.logging.UserEntryLogger
|
||||||
import info.nightscout.androidaps.plugins.bus.RxBus
|
import info.nightscout.androidaps.plugins.bus.RxBus
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.formats.*
|
import info.nightscout.androidaps.plugins.general.maintenance.formats.*
|
||||||
|
@ -39,7 +41,6 @@ import info.nightscout.androidaps.utils.alertDialogs.TwoMessagesAlertDialog
|
||||||
import info.nightscout.androidaps.utils.alertDialogs.WarningDialog
|
import info.nightscout.androidaps.utils.alertDialogs.WarningDialog
|
||||||
import info.nightscout.androidaps.utils.buildHelper.BuildHelper
|
import info.nightscout.androidaps.utils.buildHelper.BuildHelper
|
||||||
import info.nightscout.androidaps.utils.protection.PasswordCheck
|
import info.nightscout.androidaps.utils.protection.PasswordCheck
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
|
||||||
import info.nightscout.androidaps.utils.storage.Storage
|
import info.nightscout.androidaps.utils.storage.Storage
|
||||||
import info.nightscout.androidaps.utils.userEntry.UserEntryPresentationHelper
|
import info.nightscout.androidaps.utils.userEntry.UserEntryPresentationHelper
|
||||||
import info.nightscout.shared.logging.AAPSLogger
|
import info.nightscout.shared.logging.AAPSLogger
|
||||||
|
@ -112,7 +113,9 @@ class ImportExportPrefsImpl @Inject constructor(
|
||||||
val n1 = Settings.System.getString(context.contentResolver, "bluetooth_name")
|
val n1 = Settings.System.getString(context.contentResolver, "bluetooth_name")
|
||||||
val n2 = Settings.Secure.getString(context.contentResolver, "bluetooth_name")
|
val n2 = Settings.Secure.getString(context.contentResolver, "bluetooth_name")
|
||||||
val n3 = try {
|
val n3 = try {
|
||||||
|
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.BLUETOOTH_CONNECT) == PackageManager.PERMISSION_GRANTED) {
|
||||||
(context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager?)?.adapter?.name
|
(context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager?)?.adapter?.name
|
||||||
|
} else null
|
||||||
} catch (e: Exception){
|
} catch (e: Exception){
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,11 +52,11 @@ class QuickWizardListActivity : DaggerAppCompatActivityWithResult(), OnStartDrag
|
||||||
|
|
||||||
private inner class RecyclerViewAdapter(var fragmentManager: FragmentManager) : RecyclerView.Adapter<RecyclerViewAdapter.QuickWizardEntryViewHolder>(), ItemTouchHelperAdapter {
|
private inner class RecyclerViewAdapter(var fragmentManager: FragmentManager) : RecyclerView.Adapter<RecyclerViewAdapter.QuickWizardEntryViewHolder>(), ItemTouchHelperAdapter {
|
||||||
|
|
||||||
private inner class QuickWizardEntryViewHolder(val binding: OverviewQuickwizardlistItemBinding, val fragmentManager: FragmentManager) : RecyclerView.ViewHolder(binding.root)
|
private inner class QuickWizardEntryViewHolder(val binding: OverviewQuickwizardlistItemBinding) : RecyclerView.ViewHolder(binding.root)
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): QuickWizardEntryViewHolder {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): QuickWizardEntryViewHolder {
|
||||||
val binding = OverviewQuickwizardlistItemBinding.inflate(LayoutInflater.from(parent.context), parent, false)
|
val binding = OverviewQuickwizardlistItemBinding.inflate(LayoutInflater.from(parent.context), parent, false)
|
||||||
return QuickWizardEntryViewHolder(binding, fragmentManager)
|
return QuickWizardEntryViewHolder(binding)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("ClickableViewAccessibility")
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
|
@ -174,7 +174,7 @@ class QuickWizardListActivity : DaggerAppCompatActivityWithResult(), OnStartDrag
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
menuInflater.inflate(R.menu.menu_actions, menu)
|
menuInflater.inflate(R.menu.menu_actions, menu)
|
||||||
return super.onCreateOptionsMenu(menu)
|
return super.onCreateOptionsMenu(menu)
|
||||||
}
|
}
|
||||||
|
|
21
build.gradle
21
build.gradle
|
@ -11,31 +11,36 @@ buildscript {
|
||||||
lifecycle_version = '2.4.1'
|
lifecycle_version = '2.4.1'
|
||||||
dagger_version = '2.42'
|
dagger_version = '2.42'
|
||||||
coroutines_version = '1.6.1'
|
coroutines_version = '1.6.1'
|
||||||
activity_version = '1.3.1'
|
activity_version = '1.4.0'
|
||||||
fragmentktx_version = '1.3.6'
|
fragmentktx_version = '1.4.1'
|
||||||
ormLite_version = '4.46'
|
ormLite_version = '4.46'
|
||||||
nav_version = '2.3.5'
|
gson_version = '2.9.0'
|
||||||
|
nav_version = '2.4.2'
|
||||||
appcompat_version = '1.4.1'
|
appcompat_version = '1.4.1'
|
||||||
material_version = '1.4.0'
|
material_version = '1.6.0'
|
||||||
constraintlayout_version = '2.1.0'
|
constraintlayout_version = '2.1.4'
|
||||||
preferencektx_version = '1.2.0'
|
preferencektx_version = '1.2.0'
|
||||||
commonslang3_version = '3.12.0'
|
commonslang3_version = '3.12.0'
|
||||||
commonscodec_version = '1.15'
|
commonscodec_version = '1.15'
|
||||||
jodatime_version = '2.10.14'
|
jodatime_version = '2.10.14'
|
||||||
work_version = '2.5.0'
|
work_version = '2.7.1'
|
||||||
tink_version = '1.5.0'
|
tink_version = '1.5.0'
|
||||||
json_version = '20220320'
|
json_version = '20220320'
|
||||||
joga_version = '2.10.14'
|
joga_version = '2.10.14'
|
||||||
|
|
||||||
junit_version = '4.13.2'
|
junit_version = '4.13.2'
|
||||||
mockito_version = '4.4.0'
|
mockito_version = '4.4.0'
|
||||||
dexmaker_version = "1.2"
|
dexmaker_version = '1.2'
|
||||||
retrofit2_version = '2.9.0'
|
retrofit2_version = '2.9.0'
|
||||||
okhttp3_version = '4.9.0'
|
okhttp3_version = '4.9.0'
|
||||||
byteBuddy_version = '1.12.8'
|
byteBuddy_version = '1.12.8'
|
||||||
|
|
||||||
androidx_junit_version = '1.1.2'
|
androidx_junit_version = '1.1.3'
|
||||||
androidx_rules_version = '1.4.0'
|
androidx_rules_version = '1.4.0'
|
||||||
|
|
||||||
|
wearable_version = '2.9.0'
|
||||||
|
play_services_wearable_version = '17.1.0'
|
||||||
|
play_services_location_version = '19.0.1'
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|
|
@ -13,8 +13,8 @@ dependencies {
|
||||||
api "androidx.appcompat:appcompat:$appcompat_version"
|
api "androidx.appcompat:appcompat:$appcompat_version"
|
||||||
api "androidx.preference:preference-ktx:$preferencektx_version"
|
api "androidx.preference:preference-ktx:$preferencektx_version"
|
||||||
api 'androidx.biometric:biometric:1.1.0'
|
api 'androidx.biometric:biometric:1.1.0'
|
||||||
api "androidx.browser:browser:1.3.0"
|
api "androidx.browser:browser:1.4.0"
|
||||||
api "androidx.activity:activity-ktx:${activity_version}"
|
api "androidx.activity:activity-ktx:$activity_version"
|
||||||
api "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
api "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
||||||
api "androidx.lifecycle:lifecycle-process:$lifecycle_version"
|
api "androidx.lifecycle:lifecycle-process:$lifecycle_version"
|
||||||
api 'androidx.cardview:cardview:1.0.0'
|
api 'androidx.cardview:cardview:1.0.0'
|
||||||
|
@ -50,11 +50,11 @@ dependencies {
|
||||||
api "com.jjoe64:graphview:4.0.1"
|
api "com.jjoe64:graphview:4.0.1"
|
||||||
|
|
||||||
//db
|
//db
|
||||||
api "com.j256.ormlite:ormlite-core:${ormLite_version}"
|
api "com.j256.ormlite:ormlite-core:$ormLite_version"
|
||||||
api "com.j256.ormlite:ormlite-android:${ormLite_version}"
|
api "com.j256.ormlite:ormlite-android:$ormLite_version"
|
||||||
|
|
||||||
// pumpCommon
|
// pumpCommon
|
||||||
api "com.google.code.gson:gson:2.8.7"
|
api "com.google.code.gson:gson:$gson_version"
|
||||||
|
|
||||||
// don't kill my app
|
// don't kill my app
|
||||||
api('dev.doubledot.doki:library:0.0.1@aar') {
|
api('dev.doubledot.doki:library:0.0.1@aar') {
|
||||||
|
@ -82,8 +82,8 @@ dependencies {
|
||||||
api "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
api "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
||||||
api "androidx.navigation:navigation-ui-ktx:$nav_version"
|
api "androidx.navigation:navigation-ui-ktx:$nav_version"
|
||||||
|
|
||||||
api 'com.google.android.gms:play-services-wearable:17.0.0'
|
api "com.google.android.gms:play-services-wearable:$play_services_wearable_version"
|
||||||
api 'com.google.android.gms:play-services-location:17.1.0'
|
api "com.google.android.gms:play-services-location:$play_services_location_version"
|
||||||
|
|
||||||
api 'com.google.android.flexbox:flexbox:3.0.0'
|
api 'com.google.android.flexbox:flexbox:3.0.0'
|
||||||
api("io.socket:socket.io-client:1.0.0") {
|
api("io.socket:socket.io-client:1.0.0") {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import androidx.activity.result.contract.ActivityResultContract
|
||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
import info.nightscout.androidaps.plugins.general.maintenance.activities.PrefImportListActivity
|
import info.nightscout.androidaps.plugins.general.maintenance.activities.PrefImportListActivity
|
||||||
|
|
||||||
class PrefsFileContract : ActivityResultContract<Void, PrefsFile>() {
|
class PrefsFileContract : ActivityResultContract<Void?, PrefsFile?>() {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import android.net.Uri
|
||||||
import android.provider.Settings
|
import android.provider.Settings
|
||||||
import androidx.activity.result.contract.ActivityResultContract
|
import androidx.activity.result.contract.ActivityResultContract
|
||||||
|
|
||||||
class OptimizationPermissionContract : ActivityResultContract<Void, Unit>() {
|
class OptimizationPermissionContract : ActivityResultContract<Void?, Unit?>() {
|
||||||
|
|
||||||
override fun parseResult(resultCode: Int, intent: Intent?): Unit? = null
|
override fun parseResult(resultCode: Int, intent: Intent?): Unit? = null
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@ dependencies {
|
||||||
|
|
||||||
api "io.reactivex.rxjava3:rxjava:$rxjava_version"
|
api "io.reactivex.rxjava3:rxjava:$rxjava_version"
|
||||||
api "io.reactivex.rxjava3:rxandroid:$rxandroid_version"
|
api "io.reactivex.rxjava3:rxandroid:$rxandroid_version"
|
||||||
api("io.reactivex.rxjava3:rxkotlin:$rxkotlin_version")
|
api "io.reactivex.rxjava3:rxkotlin:$rxkotlin_version"
|
||||||
|
|
||||||
api "com.google.code.gson:gson:2.9.0"
|
api "com.google.code.gson:gson:$gson_version"
|
||||||
|
|
||||||
api "androidx.room:room-runtime:$room_version"
|
api "androidx.room:room-runtime:$room_version"
|
||||||
kapt "androidx.room:room-compiler:$room_version"
|
kapt "androidx.room:room-compiler:$room_version"
|
||||||
|
|
|
@ -40,7 +40,7 @@ abstract class PodActivationWizardActivity : OmnipodWizardActivityBase() {
|
||||||
val navController = getNavController()
|
val navController = getNavController()
|
||||||
val navInflater = navController.navInflater
|
val navInflater = navController.navInflater
|
||||||
val graph = navInflater.inflate(R.navigation.omnipod_common_pod_activation_wizard_navigation_graph)
|
val graph = navInflater.inflate(R.navigation.omnipod_common_pod_activation_wizard_navigation_graph)
|
||||||
graph.startDestination = startDestination
|
graph.setStartDestination(startDestination)
|
||||||
navController.graph = graph
|
navController.graph = graph
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,6 @@ apply from: "${project.rootDir}/core/android_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/jacoco_global.gradle"
|
apply from: "${project.rootDir}/core/jacoco_global.gradle"
|
||||||
|
|
||||||
|
|
||||||
ext {
|
|
||||||
wearableVersion = "2.9.0"
|
|
||||||
playServicesWearable = "17.1.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
def generateGitBuild = { ->
|
def generateGitBuild = { ->
|
||||||
|
|
||||||
StringBuilder stringBuilder = new StringBuilder()
|
StringBuilder stringBuilder = new StringBuilder()
|
||||||
|
@ -103,9 +98,9 @@ dependencies {
|
||||||
implementation 'androidx.wear:wear:1.2.0'
|
implementation 'androidx.wear:wear:1.2.0'
|
||||||
implementation "androidx.wear.tiles:tiles:1.0.1"
|
implementation "androidx.wear.tiles:tiles:1.0.1"
|
||||||
|
|
||||||
compileOnly "com.google.android.wearable:wearable:${wearableVersion}"
|
compileOnly "com.google.android.wearable:wearable:$wearable_version"
|
||||||
implementation "com.google.android.support:wearable:${wearableVersion}"
|
implementation "com.google.android.support:wearable:$wearable_version"
|
||||||
implementation "com.google.android.gms:play-services-wearable:${playServicesWearable}"
|
implementation "com.google.android.gms:play-services-wearable:$play_services_wearable_version"
|
||||||
implementation(files('libs/ustwo-clockwise-debug.aar'))
|
implementation(files('libs/ustwo-clockwise-debug.aar'))
|
||||||
implementation(files('libs/wearpreferenceactivity-0.5.0.aar'))
|
implementation(files('libs/wearpreferenceactivity-0.5.0.aar'))
|
||||||
implementation('com.github.lecho:hellocharts-library:1.5.8@aar')
|
implementation('com.github.lecho:hellocharts-library:1.5.8@aar')
|
||||||
|
|
Loading…
Reference in a new issue