mirror of
https://github.com/Etar-Group/Etar-Calendar.git
synced 2024-09-11 10:05:47 +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
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: set up JDK 11
|
- name: set up JDK 17
|
||||||
uses: actions/setup-java@v3.10.0
|
uses: actions/setup-java@v3.10.0
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '11'
|
java-version: '17'
|
||||||
- name: Restore Cache
|
- name: Restore Cache
|
||||||
uses: actions/cache@v3.2.6
|
uses: actions/cache@v3.2.6
|
||||||
with:
|
with:
|
||||||
|
@ -10,6 +10,8 @@ editorconfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
namespace 'ws.xsoh.etar'
|
||||||
|
testNamespace 'com.android.calendar.tests'
|
||||||
compileSdk 33
|
compileSdk 33
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
@ -94,15 +96,15 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
// Core
|
// 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 fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
|
||||||
implementation 'androidx.preference:preference:1.1.1'
|
implementation 'androidx.preference:preference:1.1.1'
|
||||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||||
implementation 'com.google.android.material:material:1.5.0'
|
implementation 'com.google.android.material:material:1.8.0'
|
||||||
testImplementation 'junit:junit:4.13.2'
|
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
|
// Coroutines
|
||||||
def coroutines_version = "1.6.0"
|
def coroutines_version = "1.6.0"
|
||||||
|
@ -231,7 +231,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
|||||||
|
|
||||||
override fun onStart() {
|
override fun onStart() {
|
||||||
super.onStart()
|
super.onStart()
|
||||||
preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this)
|
||||||
setPreferenceListeners(this)
|
setPreferenceListeners(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
preferenceScreen.sharedPreferences.unregisterOnSharedPreferenceChangeListener(this)
|
preferenceScreen.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(this)
|
||||||
super.onStop()
|
super.onStop()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ class GeneralPreferences : PreferenceFragmentCompat(),
|
|||||||
defaultReminderPref.entries = entries
|
defaultReminderPref.entries = entries
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPreferenceTreeClick(preference: Preference?): Boolean {
|
override fun onPreferenceTreeClick(preference: Preference): Boolean {
|
||||||
when (preference!!.key) {
|
when (preference!!.key) {
|
||||||
KEY_COLOR_PREF -> {
|
KEY_COLOR_PREF -> {
|
||||||
showColorPickerDialog()
|
showColorPickerDialog()
|
||||||
|
@ -75,7 +75,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
|||||||
val accountCategoryUniqueKey = "account_category_${calendar.accountName}_${calendar.accountType}"
|
val accountCategoryUniqueKey = "account_category_${calendar.accountName}_${calendar.accountType}"
|
||||||
var accountCategory = screen.findPreference<PreferenceCategory>(accountCategoryUniqueKey)
|
var accountCategory = screen.findPreference<PreferenceCategory>(accountCategoryUniqueKey)
|
||||||
if (accountCategory == null) {
|
if (accountCategory == null) {
|
||||||
accountCategory = PreferenceCategory(context).apply {
|
accountCategory = PreferenceCategory(requireContext()).apply {
|
||||||
key = accountCategoryUniqueKey
|
key = accountCategoryUniqueKey
|
||||||
title = calendar.accountName
|
title = calendar.accountName
|
||||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_account_circle)
|
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_account_circle)
|
||||||
@ -89,7 +89,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
|||||||
val calendarUniqueKey = "calendar_preference_${calendar.id}"
|
val calendarUniqueKey = "calendar_preference_${calendar.id}"
|
||||||
var calendarPreference = screen.findPreference<Preference>(calendarUniqueKey)
|
var calendarPreference = screen.findPreference<Preference>(calendarUniqueKey)
|
||||||
if (calendarPreference == null) {
|
if (calendarPreference == null) {
|
||||||
calendarPreference = Preference(context)
|
calendarPreference = Preference(requireContext())
|
||||||
accountCategory.addPreference(calendarPreference)
|
accountCategory.addPreference(calendarPreference)
|
||||||
}
|
}
|
||||||
calendarPreference.apply {
|
calendarPreference.apply {
|
||||||
@ -152,12 +152,12 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun addGeneralPreferences(screen: PreferenceScreen) {
|
private fun addGeneralPreferences(screen: PreferenceScreen) {
|
||||||
val generalPreference = Preference(context).apply {
|
val generalPreference = Preference(requireContext()).apply {
|
||||||
title = getString(R.string.preferences_list_general)
|
title = getString(R.string.preferences_list_general)
|
||||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_settings)
|
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_settings)
|
||||||
fragment = GeneralPreferences::class.java.name
|
fragment = GeneralPreferences::class.java.name
|
||||||
}
|
}
|
||||||
val addCaldavPreference = Preference(context).apply {
|
val addCaldavPreference = Preference(requireContext()).apply {
|
||||||
title = getString(R.string.preferences_list_add_remote)
|
title = getString(R.string.preferences_list_add_remote)
|
||||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
|||||||
launchDavX5Login()
|
launchDavX5Login()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
val addEtesyncPreference = Preference(context).apply {
|
val addEtesyncPreference = Preference(requireContext()).apply {
|
||||||
title = getString(R.string.preferences_list_add_remote_etesync)
|
title = getString(R.string.preferences_list_add_remote_etesync)
|
||||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||||
}
|
}
|
||||||
@ -173,7 +173,7 @@ class MainListPreferences : PreferenceFragmentCompat() {
|
|||||||
launchAddEtesync()
|
launchAddEtesync()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
val addOfflinePreference = Preference(context).apply {
|
val addOfflinePreference = Preference(requireContext()).apply {
|
||||||
title = getString(R.string.preferences_list_add_offline)
|
title = getString(R.string.preferences_list_add_offline)
|
||||||
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
icon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_add)
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ class QuickResponsePreferences : PreferenceFragmentCompat(), Preference.OnPrefer
|
|||||||
|
|
||||||
responsePreferences = arrayOfNulls(responses.size)
|
responsePreferences = arrayOfNulls(responses.size)
|
||||||
for ((i, response) in responses.withIndex()) {
|
for ((i, response) in responses.withIndex()) {
|
||||||
val responsePreference = EditTextPreference(activity).apply {
|
val responsePreference = EditTextPreference(requireActivity()).apply {
|
||||||
setDialogTitle(R.string.quick_response_settings_edit_title)
|
setDialogTitle(R.string.quick_response_settings_edit_title)
|
||||||
title = response
|
title = response
|
||||||
text = response
|
text = response
|
||||||
|
@ -81,7 +81,7 @@ class SettingsActivity : AppCompatActivity(),
|
|||||||
val args = pref.extras
|
val args = pref.extras
|
||||||
val fragment = supportFragmentManager.fragmentFactory.instantiate(
|
val fragment = supportFragmentManager.fragmentFactory.instantiate(
|
||||||
classLoader,
|
classLoader,
|
||||||
pref.fragment
|
pref.fragment!!
|
||||||
).apply {
|
).apply {
|
||||||
arguments = args
|
arguments = args
|
||||||
setTargetFragment(caller, 0)
|
setTargetFragment(caller, 0)
|
||||||
|
@ -77,7 +77,7 @@ class ViewDetailsPreferences : PreferenceFragmentCompat() {
|
|||||||
val newEntries = Arrays.copyOf(entries, entries.size - 1)
|
val newEntries = Arrays.copyOf(entries, entries.size - 1)
|
||||||
displayTime.entries = newEntries
|
displayTime.entries = newEntries
|
||||||
}
|
}
|
||||||
if (displayTime.entry == null || displayTime.entry.isEmpty()) {
|
if (displayTime.entry == null || displayTime.entry!!.isEmpty()) {
|
||||||
displayTime.value = getDefaultTimeToShow(activity).toString()
|
displayTime.value = getDefaultTimeToShow(activity).toString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -173,7 +173,7 @@ class ViewDetailsPreferences : PreferenceFragmentCompat() {
|
|||||||
return Preferences(context!!)
|
return Preferences(context!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setDefaultValues(context: Context?) {
|
fun setDefaultValues(context: Context) {
|
||||||
PreferenceManager.setDefaultValues(context, SHARED_PREFS_NAME, Context.MODE_PRIVATE,
|
PreferenceManager.setDefaultValues(context, SHARED_PREFS_NAME, Context.MODE_PRIVATE,
|
||||||
R.xml.view_details_preferences, true)
|
R.xml.view_details_preferences, true)
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application' version '7.2.1' apply false
|
id 'com.android.application' version '8.0.0' apply false
|
||||||
id 'com.android.library' version '7.2.1' apply false
|
id 'com.android.library' version '8.0.0' apply false
|
||||||
id 'org.jetbrains.kotlin.android' version '1.7.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.ec4j.editorconfig' version "0.0.3" apply false
|
||||||
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.5" apply true
|
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'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk 31
|
compileSdk 33
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 31
|
targetSdk 33
|
||||||
|
}
|
||||||
|
|
||||||
|
buildFeatures {
|
||||||
|
renderScript true
|
||||||
|
aidl true
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
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,
|
# resources declared in the library itself and none from the library's dependencies,
|
||||||
# thereby reducing the size of the R class for that library
|
# thereby reducing the size of the R class for that library
|
||||||
android.nonTransitiveRClass=false
|
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
|
#Tue Nov 16 03:59:46 GMT 2021
|
||||||
distributionBase=GRADLE_USER_HOME
|
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
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
Loading…
Reference in New Issue
Block a user