mirror of
https://github.com/Etar-Group/Etar-Calendar.git
synced 2024-07-14 13:21:44 +03:00
Update Gradle and dependencies (#1373)
Co-authored-by: Gitsaibot <Gitsaibot@exmaple.com>
This commit is contained in:
parent
38cfafad44
commit
3b20abbb1c
4
.github/workflows/android.yml
vendored
4
.github/workflows/android.yml
vendored
@ -13,11 +13,11 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: set up JDK 11
|
||||
- name: set up JDK 17
|
||||
uses: actions/setup-java@v3.10.0
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '11'
|
||||
java-version: '17'
|
||||
- name: Restore Cache
|
||||
uses: actions/cache@v3.2.6
|
||||
with:
|
||||
|
@ -10,6 +10,8 @@ editorconfig {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'ws.xsoh.etar'
|
||||
testNamespace 'com.android.calendar.tests'
|
||||
compileSdk 33
|
||||
|
||||
defaultConfig {
|
||||
@ -94,15 +96,15 @@ android {
|
||||
dependencies {
|
||||
|
||||
// Core
|
||||
implementation 'androidx.core:core-ktx:1.8.0'
|
||||
implementation 'androidx.core:core-ktx:1.10.0'
|
||||
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
|
||||
implementation 'androidx.preference:preference:1.1.1'
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||
implementation 'com.google.android.material:material:1.5.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'com.google.android.material:material:1.8.0'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.8'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
||||
|
||||
// Coroutines
|
||||
def coroutines_version = "1.6.0"
|
||||
|
@ -231,7 +231,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
||||
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
||||
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||
setPreferenceListeners(this)
|
||||
}
|
||||
|
||||
@ -258,7 +258,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
||||
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||
super.onStop()
|
||||
}
|
||||
|
||||
@ -403,7 +403,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
||||
defaultReminderPref.entries = entries
|
||||
}
|
||||
|
||||
override fun onPreferenceTreeClick(preference: Preference?): Boolean {
|
||||
override fun onPreferenceTreeClick(preference: Preference): Boolean {
|
||||
when (preference!!.key) {
|
||||
KEY_COLOR_PREF -> {
|
||||
showColorPickerDialog()
|
||||
|
@ -75,7 +75,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
||||
val accountCategoryUniqueKey = "account_category_${calendar.accountName}_${calendar.accountType}"
|
||||
var accountCategory = screen.findPreference<PreferenceCategory>(accountCategoryUniqueKey)
|
||||
if (accountCategory == null) {
|
||||
accountCategory = PreferenceCategory(context).apply {
|
||||
accountCategory = PreferenceCategory(requireContext()).apply {
|
||||
key = accountCategoryUniqueKey
|
||||
title = calendar.accountName
|
||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_account_circle)
|
||||
@ -89,7 +89,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
||||
val calendarUniqueKey = "calendar_preference_${calendar.id}"
|
||||
var calendarPreference = screen.findPreference<Preference>(calendarUniqueKey)
|
||||
if (calendarPreference == null) {
|
||||
calendarPreference = Preference(context)
|
||||
calendarPreference = Preference(requireContext())
|
||||
accountCategory.addPreference(calendarPreference)
|
||||
}
|
||||
calendarPreference.apply {
|
||||
@ -152,12 +152,12 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
||||
}
|
||||
|
||||
private fun addGeneralPreferences(screen: PreferenceScreen) {
|
||||
val generalPreference = Preference(context).apply {
|
||||
val generalPreference = Preference(requireContext()).apply {
|
||||
title = getString(R.string.preferences_list_general)
|
||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_settings)
|
||||
fragment = GeneralPreferences::class.java.name
|
||||
}
|
||||
val addCaldavPreference = Preference(context).apply {
|
||||
val addCaldavPreference = Preference(requireContext()).apply {
|
||||
title = getString(R.string.preferences_list_add_remote)
|
||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||
}
|
||||
@ -165,7 +165,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
||||
launchDavX5Login()
|
||||
true
|
||||
}
|
||||
val addEtesyncPreference = Preference(context).apply {
|
||||
val addEtesyncPreference = Preference(requireContext()).apply {
|
||||
title = getString(R.string.preferences_list_add_remote_etesync)
|
||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||
}
|
||||
@ -173,7 +173,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
||||
launchAddEtesync()
|
||||
true
|
||||
}
|
||||
val addOfflinePreference = Preference(context).apply {
|
||||
val addOfflinePreference = Preference(requireContext()).apply {
|
||||
title = getString(R.string.preferences_list_add_offline)
|
||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class QuickResponsePreferences : PreferenceFragmentCompat(), Preference.OnPrefer
|
||||
|
||||
responsePreferences = arrayOfNulls(responses.size)
|
||||
for ((i, response) in responses.withIndex()) {
|
||||
val responsePreference = EditTextPreference(activity).apply {
|
||||
val responsePreference = EditTextPreference(requireActivity()).apply {
|
||||
setDialogTitle(R.string.quick_response_settings_edit_title)
|
||||
title = response
|
||||
text = response
|
||||
|
@ -81,7 +81,7 @@ class SettingsActivity : AppCompatActivity(),
|
||||
val args = pref.extras
|
||||
val fragment = supportFragmentManager.fragmentFactory.instantiate(
|
||||
classLoader,
|
||||
pref.fragment
|
||||
pref.fragment!!
|
||||
).apply {
|
||||
arguments = args
|
||||
setTargetFragment(caller, 0)
|
||||
|
@ -77,7 +77,7 @@ class ViewDetailsPreferences : PreferenceFragmentCompat() {
|
||||
val newEntries = Arrays.copyOf(entries, entries.size - 1)
|
||||
displayTime.entries = newEntries
|
||||
}
|
||||
if (displayTime.entry == null || displayTime.entry.isEmpty()) {
|
||||
if (displayTime.entry == null || displayTime.entry!!.isEmpty()) {
|
||||
displayTime.value = getDefaultTimeToShow(activity).toString()
|
||||
}
|
||||
}
|
||||
@ -173,7 +173,7 @@ class ViewDetailsPreferences : PreferenceFragmentCompat() {
|
||||
return Preferences(context!!)
|
||||
}
|
||||
|
||||
fun setDefaultValues(context: Context?) {
|
||||
fun setDefaultValues(context: Context) {
|
||||
PreferenceManager.setDefaultValues(context, SHARED_PREFS_NAME, Context.MODE_PRIVATE,
|
||||
R.xml.view_details_preferences, true)
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'com.android.application' version '7.2.1' apply false
|
||||
id 'com.android.library' version '7.2.1' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
|
||||
id 'com.android.application' version '8.0.0' apply false
|
||||
id 'com.android.library' version '8.0.0' apply false
|
||||
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
|
||||
id 'org.ec4j.editorconfig' version "0.0.3" apply false
|
||||
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.5" apply true
|
||||
}
|
||||
|
2
external/calendar
vendored
2
external/calendar
vendored
@ -1 +1 @@
|
||||
Subproject commit d47bcc32e0ed9b6378cebcfe531ee9a8fdcc8a21
|
||||
Subproject commit 04fe66e252f9c6cf569dfb462004dd99d6e68b00
|
2
external/chips
vendored
2
external/chips
vendored
@ -1 +1 @@
|
||||
Subproject commit 397a829ece6de4f801a7f7fd0d3e7839e5f3fea0
|
||||
Subproject commit ad59fc7c1fb3bb6952fb55efdbc31396b7f28248
|
2
external/colorpicker
vendored
2
external/colorpicker
vendored
@ -1 +1 @@
|
||||
Subproject commit b9ffe228e641a23e97d4b23acbb2c9c4fce3efe4
|
||||
Subproject commit c57cf97b1a0e0526a80513c56ed74af59bdc1974
|
9
external/configuration/common.gradle
vendored
9
external/configuration/common.gradle
vendored
@ -1,11 +1,16 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdk 31
|
||||
compileSdk 33
|
||||
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
targetSdk 31
|
||||
targetSdk 33
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
renderScript true
|
||||
aidl true
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
2
external/timezonepicker
vendored
2
external/timezonepicker
vendored
@ -1 +1 @@
|
||||
Subproject commit bad577815fb03f1d4ec1276e6a5250bbbffb9e8e
|
||||
Subproject commit 1fcb55e77be051a1cf6c5ba8ac1a95e884a98eb8
|
@ -23,3 +23,5 @@ kotlin.code.style=official
|
||||
# resources declared in the library itself and none from the library's dependencies,
|
||||
# thereby reducing the size of the R class for that library
|
||||
android.nonTransitiveRClass=false
|
||||
android.defaults.buildfeatures.buildconfig=true
|
||||
android.nonFinalResIds=false
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Tue Nov 16 03:59:46 GMT 2021
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
Loading…
Reference in New Issue
Block a user