Skip to content

Commit a6f6950

Browse files
authored
Merge pull request #141 from solrudev/develop
0.16.1
2 parents 3bfda7c + 143501f commit a6f6950

File tree

14 files changed

+117
-64
lines changed

14 files changed

+117
-64
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Ackpine depends on Jetpack libraries, so it's also necessary to add the `google(
3535

3636
```toml
3737
[versions]
38-
ackpine = "0.16.0"
38+
ackpine = "0.16.1"
3939

4040
[libraries]
4141
ackpine-core = { module = "ru.solrudev.ackpine:ackpine-core", version.ref = "ackpine" }
@@ -76,7 +76,7 @@ ackpine = [
7676

7777
```kotlin
7878
dependencies {
79-
val ackpineVersion = "0.16.0"
79+
val ackpineVersion = "0.16.1"
8080
implementation("ru.solrudev.ackpine:ackpine-core:$ackpineVersion")
8181

8282
// optional - Kotlin extensions and Coroutines support

ackpine-core/src/main/kotlin/ru/solrudev/ackpine/impl/database/AckpineDatabaseMigrations.kt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,31 +69,10 @@ internal object Migration_7_8 : Migration(7, 8) {
6969
@RestrictTo(RestrictTo.Scope.LIBRARY)
7070
internal object Migration_12_13 : Migration(12, 13) {
7171
override fun migrate(db: SupportSQLiteDatabase) = db.migrate {
72-
execSQL("DROP TABLE sessions")
73-
execSQL("CREATE TABLE IF NOT EXISTS sessions (id TEXT NOT NULL, type TEXT NOT NULL, state TEXT NOT NULL, confirmation TEXT NOT NULL, notification_title BLOB NOT NULL, notification_text BLOB NOT NULL, notification_icon BLOB NOT NULL, require_user_action INTEGER NOT NULL DEFAULT true, last_launch_timestamp INTEGER NOT NULL DEFAULT 0, last_commit_timestamp INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(id))")
74-
execSQL("CREATE INDEX IF NOT EXISTS index_sessions_type ON sessions (type)")
75-
execSQL("CREATE INDEX IF NOT EXISTS index_sessions_state ON sessions (state)")
76-
execSQL("CREATE INDEX IF NOT EXISTS index_sessions_last_launch_timestamp ON sessions (last_launch_timestamp)")
77-
execSQL("CREATE INDEX IF NOT EXISTS index_sessions_last_commit_timestamp ON sessions (last_commit_timestamp)")
72+
execSQL("DELETE FROM sessions WHERE EXISTS (SELECT 1 FROM sessions_plugins WHERE sessions_plugins.session_id = sessions.id)")
7873
execSQL("DROP TABLE sessions_plugins")
7974
execSQL("CREATE TABLE IF NOT EXISTS sessions_plugins (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, session_id TEXT NOT NULL, plugin_class_name TEXT NOT NULL, FOREIGN KEY(session_id) REFERENCES sessions(id) ON UPDATE CASCADE ON DELETE CASCADE )")
8075
execSQL("CREATE INDEX IF NOT EXISTS index_sessions_plugins_session_id ON sessions_plugins (session_id)")
81-
execSQL("DELETE FROM sessions_installer_types")
82-
execSQL("DELETE FROM sessions_install_failures")
83-
execSQL("DELETE FROM sessions_uninstall_failures")
84-
execSQL("DELETE FROM sessions_install_uris")
85-
execSQL("DELETE FROM sessions_package_names")
86-
execSQL("DELETE FROM sessions_progress")
87-
execSQL("DELETE FROM sessions_native_session_ids")
88-
execSQL("DELETE FROM sessions_notification_ids")
89-
execSQL("DELETE FROM sessions_names")
90-
execSQL("DELETE FROM sessions_install_modes")
91-
execSQL("DELETE FROM sessions_last_install_timestamps")
92-
execSQL("DELETE FROM sessions_install_preapproval")
93-
execSQL("DELETE FROM sessions_install_constraints")
94-
execSQL("DELETE FROM sessions_update_ownership")
95-
execSQL("DELETE FROM sessions_package_sources")
96-
execSQL("DELETE FROM sessions_confirmation_launches")
9776
}
9877
}
9978

ackpine-core/src/main/kotlin/ru/solrudev/ackpine/impl/plugability/PluginParametersRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ public interface PluginParametersRepository {
4545
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
4646
public object EmptyPluginParametersRepository : PluginParametersRepository {
4747
override fun getForSession(sessionId: UUID): AckpinePlugin.Parameters = AckpinePlugin.Parameters.None
48-
override fun setForSession(sessionId: UUID, params: AckpinePlugin.Parameters) {}
48+
override fun setForSession(sessionId: UUID, params: AckpinePlugin.Parameters) { /* no-op */ }
4949
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (C) 2023 Ilya Fomichev
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<resources>
19+
<string name="ackpine_prompt_install_message">Vui lòng xác nhận cài đặt.</string>
20+
<string name="ackpine_prompt_install_message_with_label">Xác nhận cài đặt từ tệp %s.</string>
21+
<string name="ackpine_prompt_install_title">Cài đặt</string>
22+
<string name="ackpine_prompt_uninstall_message">Vui lòng xác nhận gỡ cài đặt.</string>
23+
<string name="ackpine_prompt_uninstall_message_with_label">Xác nhận gỡ cài đặt ứng dụng %s.</string>
24+
<string name="ackpine_prompt_uninstall_title">Gỡ cài đặt</string>
25+
<string name="ackpine_notification_channel_description">Tắt tùy chọn này sẽ làm hỏng chức năng cài đặt gói.</string>
26+
<string name="ackpine_notification_channel_name">Cài đặt và gỡ bỏ</string>
27+
</resources>

ackpine-plugins/shizuku/src/main/kotlin/ru/solrudev/ackpine/shizuku/ShizukuPlugin.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ public class ShizukuPlugin private constructor() : AckpinePlugin<ShizukuPlugin.P
229229

230230
public companion object {
231231

232-
@Suppress("Unused")
233-
private const val serialVersionUID: Long = 3253616568184160735L
234-
235232
/**
236233
* Default [ShizukuPlugin] parameters.
237234
*

docs/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change Log
22
==========
33

4+
Version 0.16.1 (2025-10-07)
5+
---------------------------
6+
7+
### Bug fixes and improvements
8+
9+
- Add Vietnamese language for default library messages and for sample apps. Thanks to @nqmgaming.
10+
- Rewrite last Ackpine internal database migration introduced in 0.16.0. If you didn't update to 0.16.0, only sessions with plugins applied (such as `ShizukuPlugin`) will be cleared after update to 0.16.1.
11+
412
Version 0.16.0 (2025-10-01)
513
---------------------------
614

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Ackpine depends on Jetpack libraries, so it's also necessary to add the `google(
2929

3030
```toml
3131
[versions]
32-
ackpine = "0.16.0"
32+
ackpine = "0.16.1"
3333

3434
[libraries]
3535
ackpine-core = { module = "ru.solrudev.ackpine:ackpine-core", version.ref = "ackpine" }
@@ -68,7 +68,7 @@ Ackpine depends on Jetpack libraries, so it's also necessary to add the `google(
6868

6969
```kotlin
7070
dependencies {
71-
val ackpineVersion = "0.16.0"
71+
val ackpineVersion = "0.16.1"
7272
implementation("ru.solrudev.ackpine:ackpine-core:$ackpineVersion")
7373

7474
// optional - Kotlin extensions and Coroutines support
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="install">Installeer</string>
4-
<string name="button_install">Installeer</string>
5-
<string name="cancel">Kanselleer</string>
6-
<string name="error">Fout</string>
7-
<string name="error_with_reason">Fout: %s</string>
3+
<string name="install">Installeer</string>
4+
<string name="button_install">Installeer</string>
5+
<string name="cancel">Kanselleer</string>
6+
<string name="error">Fout</string>
7+
<string name="error_with_reason">Fout: %s</string>
88
</resources>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="install">Cài đặt</string>
4+
<string name="button_install">Cài đặt</string>
5+
<string name="cancel">Huỷ</string>
6+
<string name="error">Có lỗi</string>
7+
<string name="error_with_reason">Lỗi: %s</string>
8+
</resources>
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="screen_title_install">Installeer</string>
4-
<string name="screen_title_uninstall">Verwyder</string>
5-
<string name="cancel">Kanselleer</string>
6-
<string name="fab_install">Installeer</string>
7-
<string name="uninstall">Verwyder</string>
8-
<string name="session_error">Fout</string>
9-
<string name="session_error_with_reason">Fout: %s</string>
10-
<string name="no_install_sessions">Geen installasie sessies nie</string>
11-
<string name="no_installed_applications">Geen geïnstalleerde toepassings nie</string>
12-
<string name="error_no_base_apk">Geen basis APK gevind nie</string>
13-
<string name="error_conflicting_base_apk">Meer as een basis APK gevind</string>
14-
<string name="error_conflicting_split_name">Botesende gesplete naam: %s</string>
15-
<string name="error_conflicting_package_name">Botesende pakket naam. Verwag: %1$s, gevind: %2$s, naam: %3$s</string>
16-
<string name="error_conflicting_version_code">Botesende weergawe kode. Verwag: %1$s, gevind: %2$s, naam: %3$s</string>
3+
<string name="screen_title_install">Installeer</string>
4+
<string name="screen_title_uninstall">Verwyder</string>
5+
<string name="cancel">Kanselleer</string>
6+
<string name="fab_install">Installeer</string>
7+
<string name="uninstall">Verwyder</string>
8+
<string name="session_error">Fout</string>
9+
<string name="session_error_with_reason">Fout: %s</string>
10+
<string name="no_install_sessions">Geen installasie sessies nie</string>
11+
<string name="no_installed_applications">Geen geïnstalleerde toepassings nie</string>
12+
<string name="error_no_base_apk">Geen basis APK gevind nie</string>
13+
<string name="error_conflicting_base_apk">Meer as een basis APK gevind</string>
14+
<string name="error_conflicting_split_name">Botesende gesplete naam: %s</string>
15+
<string name="error_conflicting_package_name">Botesende pakket naam. Verwag: %1$s, gevind: %2$s, naam: %3$s</string>
16+
<string name="error_conflicting_version_code">Botesende weergawe kode. Verwag: %1$s, gevind: %2$s, naam: %3$s</string>
1717
</resources>

0 commit comments

Comments
 (0)