Skip to content

Commit 31444ac

Browse files
chore(deps): update wry to 0.28 (#6725)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent cdad6e0 commit 31444ac

File tree

10 files changed

+30
-40
lines changed

10 files changed

+30
-40
lines changed

.changes/cli-wry-0-28.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'cli.rs': 'patch'
3+
'cli.js': 'patch'
4+
---
5+
6+
Update mobile template to `wry@0.28`

.changes/core-wry-0-28.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch'
3+
---
4+
5+
On Android, update proguard rules.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-runtime-wry': 'patch'
3+
---
4+
5+
Update `wry` to `0.28`

core/tauri-runtime-wry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exclude = [ "CHANGELOG.md", "/target" ]
1313
readme = "README.md"
1414

1515
[dependencies]
16-
wry = { version = "0.27.3", default-features = false, features = [ "file-drop", "protocol" ] }
16+
wry = { version = "0.28.1", default-features = false, features = [ "file-drop", "protocol" ] }
1717
tauri-runtime = { version = "0.13.0-alpha.4", path = "../tauri-runtime" }
1818
tauri-utils = { version = "2.0.0-alpha.4", path = "../tauri-utils" }
1919
uuid = { version = "1", features = [ "v4" ] }
Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22

3-
-keep class $PACKAGE.* {
4-
native <methods>;
5-
}
6-
7-
-keepclassmembers class $PACKAGE.TauriActivity {
8-
getAppClass(...);
9-
getVersion();
10-
}
11-
12-
-keep class $PACKAGE.RustWebView {
13-
public <init>(...);
14-
loadUrlMainThread(...);
15-
}
163

17-
-keep class $PACKAGE.Ipc {
18-
public <init>(...);
19-
@android.webkit.JavascriptInterface public <methods>;
4+
-keep class $PACKAGE.TauriActivity {
5+
public app.tauri.plugin.PluginManager getPluginManager();
206
}
21-
22-
-keep class $PACKAGE.RustWebChromeClient,$PACKAGE.RustWebViewClient {
23-
public <init>(...);
24-
}
25-
26-
-keep class $PACKAGE.MainActivity {
27-
public getPluginManager();
28-
}
29-
30-
-keep class androidx.appcompat.app.AppCompatActivity { }

examples/api/src-tauri/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/api/docs/js-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tooling/cli/templates/mobile/android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ android {
3737
getByName("release") {
3838
isMinifyEnabled = true
3939
val proguards = fileTree(".") {
40-
include("*.pro")
40+
include("**/*.pro")
4141
}
4242
proguardFiles(*proguards.toList().toTypedArray())
4343
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
package {{reverse-domain app.domain}}.{{snake-case app.name}}
22

3-
import app.tauri.plugin.PluginManager
4-
5-
class MainActivity : TauriActivity() {
6-
var pluginManager: PluginManager = PluginManager(this)
7-
}
3+
class MainActivity : TauriActivity()
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package {{reverse-domain app.domain}}.{{snake-case app.name}}
22

3-
import androidx.appcompat.app.AppCompatActivity
3+
import app.tauri.plugin.PluginManager
44

5-
abstract class TauriActivity : AppCompatActivity()
5+
abstract class TauriActivity : WryActivity() {
6+
var pluginManager: PluginManager = PluginManager(this)
7+
}

0 commit comments

Comments
 (0)