Skip to content

Commit

Permalink
- updated grandle
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaksinikos committed Aug 6, 2024
1 parent 98a45ae commit 4af2a1f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 19
targetSdkVersion 31
versionCode 19
versionName '1.4.5'
versionName '3.6.5'
}

buildTypes {
Expand All @@ -30,14 +30,15 @@ android {
}
}

lintOptions {
abortOnError false
}

ndkVersion '21.3.6528147'
androidResources {
noCompress 'dict'
}
namespace 'org.dslul.openboard.inputmethod.latin'
lint {
abortOnError false
}
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.dslul.openboard.inputmethod.latin">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ class DictionarySettingsFragment
// never null
private var mCurrentPreferenceMap = TreeMap<String, WordListPreference>()

@Deprecated("Deprecated in Java")
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
val v = inflater.inflate(R.layout.loading_page, container, true)
mLoadingView = v.findViewById(R.id.loading_container)
return super.onCreateView(inflater, container, savedInstanceState)
}

@Deprecated("Deprecated in Java")
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
val activity = activity
Expand All @@ -49,6 +51,7 @@ class DictionarySettingsFragment
setHasOptionsMenu(true)
}

@Deprecated("Deprecated in Java")
override fun onResume() {
super.onResume()
mChangedSettings = false
Expand All @@ -68,6 +71,7 @@ class DictionarySettingsFragment
}.start()
}

@Deprecated("Deprecated in Java")
override fun onPause() {
super.onPause()
val activity = activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class WordListPreference(context: Context?,
return status == mStatus
}

@Deprecated("Deprecated in Java")
public override fun onCreateView(parent: ViewGroup): View {
val orphanedView = mInterfaceState.findFirstOrphanedView()
if (null != orphanedView) return orphanedView // Will be sent to onBindView
Expand Down Expand Up @@ -98,6 +99,7 @@ class WordListPreference(context: Context?,
setStatus(MetadataDbHelper.Companion.STATUS_DELETING)
}

@Deprecated("Deprecated in Java")
override fun onBindView(view: View) {
super.onBindView(view)
(view as ViewGroup).layoutTransition = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
private var dayNightPref: TwoStatePreference? = null


@Deprecated("Deprecated in Java")
override fun onCreate(icicle: Bundle?) {
super.onCreate(icicle)
addPreferencesFromResource(R.xml.prefs_screen_appearance)
Expand All @@ -59,13 +60,15 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
Settings.PREF_KEYBOARD_HEIGHT_SCALE, SettingsValues.DEFAULT_SIZE_SCALE)
}

@Deprecated("Deprecated in Java")
override fun onResume() {
super.onResume()
updateThemePreferencesState()
CustomInputStyleSettingsFragment.updateCustomInputStylesSummary(
findPreference(Settings.PREF_CUSTOM_INPUT_STYLES))
}

@Deprecated("Deprecated in Java")
override fun onPreferenceChange(preference: Preference, value: Any?): Boolean {
(preference as? ListPreference)?.apply {
summary = entries[entryValues.indexOfFirst { it == value }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import android.preference.PreferenceActivity
*/
abstract class InputMethodSettingsActivity : PreferenceActivity(), InputMethodSettingsInterface {
private val mSettings = InputMethodSettingsImpl()
@Deprecated("Deprecated in Java")
public override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
preferenceScreen = preferenceManager.createPreferenceScreen(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import android.preference.PreferenceFragment
*/
abstract class InputMethodSettingsFragment : PreferenceFragment(), InputMethodSettingsInterface {
private val mSettings = InputMethodSettingsImpl()
@Deprecated("Deprecated in Java")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val context: Context = activity
Expand Down Expand Up @@ -63,6 +64,7 @@ abstract class InputMethodSettingsFragment : PreferenceFragment(), InputMethodSe
/**
* {@inheritDoc}
*/
@Deprecated("Deprecated in Java")
override fun onResume() {
super.onResume()
mSettings.updateSubtypeEnabler()
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.5.31'
ext.kotlin_version = '1.6.21'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 4af2a1f

Please sign in to comment.