Skip to content

Commit f3ed508

Browse files
committed
Update publishing, build, docs & translations
1 parent 7f8c90a commit f3ed508

File tree

228 files changed

+22424
-20148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+22424
-20148
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
### v2.1.8
2+
- Updated dependencies.
3+
- Updated translations (added Chinese).
4+
15
### v2.1.7
2-
- Add Ukrainian translation, thanks to @Serhii_Ka.
6+
- Added Ukrainian translation, thanks to @Serhii_Ka.
37

48
### v2.1.6
59
- Fixed layout issue in 2.1.5.

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ plugins {
44
}
55

66
android {
7+
namespace "com.maltaisn.recurpicker.demo"
8+
79
compileSdkVersion setup.compileSdk
810
buildToolsVersion setup.buildTools
911
defaultConfig {
@@ -12,6 +14,7 @@ android {
1214
targetSdkVersion setup.targetSdk
1315
versionCode 1
1416
versionName "1.0"
17+
multiDexEnabled true
1518
}
1619
sourceSets {
1720
main.java.srcDirs += "src/main/kotlin"

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<manifest
1818
xmlns:android="http://schemas.android.com/apk/res/android"
1919
xmlns:tools="http://schemas.android.com/tools"
20-
package="com.maltaisn.recurpicker.demo"
2120
>
2221

2322
<application
@@ -31,6 +30,7 @@
3130
<activity
3231
android:name="com.maltaisn.recurpicker.demo.MainActivity"
3332
android:windowSoftInputMode="stateAlwaysHidden"
33+
android:exported="true"
3434
>
3535
<intent-filter>
3636
<action android:name="android.intent.action.MAIN" />

app/src/main/kotlin/com/maltaisn/recurpicker/demo/MainFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import android.view.LayoutInflater
2222
import android.view.View
2323
import android.view.ViewGroup
2424
import androidx.appcompat.app.AppCompatDelegate
25+
import androidx.core.os.BundleCompat
2526
import androidx.fragment.app.Fragment
2627
import androidx.fragment.app.FragmentTransaction
2728
import androidx.recyclerview.widget.LinearLayoutManager
@@ -160,7 +161,7 @@ class MainFragment : Fragment(), DateDialogFragment.Callback,
160161
if (state != null) {
161162
// Restore saved state
162163
startDate = state.getLong("startDate")
163-
selectedRecurrence = state.getParcelable("selectedRecurrence")!!
164+
selectedRecurrence = BundleCompat.getParcelable(state, "selectedRecurrence", Recurrence::class.java)!!
164165
recurrenceEvents = state.getLongArray("recurrenceEvents")!!.toMutableList()
165166
isDoneFinding = state.getBoolean("isDoneFinding")
166167
} else {

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
buildscript {
22
ext {
33
setup = [
4-
compileSdk: 30,
5-
buildTools: "30.0.2",
4+
compileSdk: 34,
5+
buildTools: "34.0.0",
66
minSdk: 14,
7-
targetSdk: 30
7+
targetSdk: 34
88
]
99
// for maven publishing plugin
1010
VERSION_NAME = libVersion
@@ -26,7 +26,7 @@ buildscript {
2626

2727
plugins {
2828
id "base"
29-
id "io.gitlab.arturbosch.detekt" version "1.18.1"
29+
id "io.gitlab.arturbosch.detekt" version "1.23.4"
3030
}
3131

3232
allprojects {
@@ -46,7 +46,6 @@ detekt {
4646
buildUponDefaultConfig = true
4747
parallel = true
4848
autoCorrect = true
49-
config = rootProject.files("config/detekt/detekt.yml")
5049
}
5150

5251
tasks.detekt.jvmTarget = "1.8"

0 commit comments

Comments
 (0)