Skip to content

Commit 24eb8b8

Browse files
committed
fix(cleanup): regen android files with old names
1 parent f6aae7a commit 24eb8b8

File tree

7 files changed

+18
-164
lines changed

7 files changed

+18
-164
lines changed

plugins/deep-link/examples/app/src-tauri/gen/android/app/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/src/main/java/com/kodski/deep_link_example/generated
1+
/src/main/java/com/tauri/deep_link_example/generated
22
/src/main/jniLibs/**/*.so
33
/src/main/assets/tauri.conf.json
44
/tauri.build.gradle.kts

plugins/deep-link/examples/app/src-tauri/gen/android/app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ val tauriProperties = Properties().apply {
1515

1616
android {
1717
compileSdk = 36
18-
namespace = "com.kodski.deep_link_example"
18+
namespace = "com.tauri.deep_link_example"
1919
defaultConfig {
2020
manifestPlaceholders["usesCleartextTraffic"] = "false"
21-
applicationId = "com.kodski.deep_link_example"
21+
applicationId = "com.tauri.deep_link_example"
2222
minSdk = 24
2323
targetSdk = 36
2424
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()

plugins/deep-link/examples/app/src-tauri/gen/android/app/src/main/java/com/kodski/deep_link_example/MainActivity.kt

Lines changed: 0 additions & 11 deletions
This file was deleted.

plugins/deep-link/examples/app/src-tauri/gen/android/buildSrc/src/main/java/com/kodski/deep_link_example/kotlin/BuildTask.kt

Lines changed: 0 additions & 52 deletions
This file was deleted.

plugins/deep-link/examples/app/src-tauri/gen/android/buildSrc/src/main/java/com/kodski/deep_link_example/kotlin/RustPlugin.kt

Lines changed: 0 additions & 85 deletions
This file was deleted.

plugins/deep-link/examples/app/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"productName": "deep-link-example",
33
"version": "0.1.0",
4-
"identifier": "com.kodski.deep-link-example",
4+
"identifier": "com.tauri.deep-link-example",
55
"build": {
66
"devUrl": "http://localhost:1420",
77
"frontendDist": "../dist",

plugins/deep-link/src/lib.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,21 @@ fn init_deep_link<R: Runtime>(
5656
}),
5757
},
5858
)?;
59-
59+
6060
return Ok(DeepLink {
6161
app: app.clone(),
6262
plugin_handle: handle,
6363
});
6464
}
6565

6666
#[cfg(target_os = "ios")]
67-
{
68-
let deep_link = DeepLink {
69-
app: app.clone(),
70-
current: Default::default(),
71-
config: api.config().clone(),
72-
};
73-
Ok(deep_link)
74-
}
67+
return Ok(DeepLink {
68+
app: app.clone(),
69+
current: Default::default(),
70+
config: api.config().clone(),
71+
});
7572

76-
#[cfg(any(desktop))]
73+
#[cfg(desktop)]
7774
{
7875
let args = std::env::args();
7976
let deep_link = DeepLink {
@@ -89,7 +86,6 @@ fn init_deep_link<R: Runtime>(
8986

9087
#[cfg(target_os = "android")]
9188
mod imp {
92-
use std::sync::Mutex;
9389
use tauri::{ipc::Channel, plugin::PluginHandle, AppHandle, Runtime};
9490

9591
use serde::{Deserialize, Serialize};
@@ -106,6 +102,12 @@ mod imp {
106102
pub url: Option<url::Url>,
107103
}
108104

105+
/// Access to the deep-link APIs.
106+
pub struct DeepLink<R: Runtime> {
107+
pub(crate) app: AppHandle<R>,
108+
pub(crate) plugin_handle: PluginHandle<R>,
109+
}
110+
109111
impl<R: Runtime> DeepLink<R> {
110112
/// Get the current URLs that triggered the deep link. Use this on app load to check whether your app was started via a deep link.
111113
///
@@ -527,4 +529,4 @@ pub fn init<R: Runtime>() -> TauriPlugin<R, Option<config::Config>> {
527529
}
528530
})
529531
.build()
530-
}
532+
}

0 commit comments

Comments
 (0)