update rust and node deps
Seto committed
Nov 28, 2025 at 16:30 UTC
0c8cc5082f8c0632c05d68ec2c9343dcf922bb26
8 files changed
+22
-38
Cargo.toml
+3
-3
@@ -10,9 +10,9 @@ exclude = ["/examples", "/dist-js", "/guest-js", "/node_modules"]
10
links = "tauri-plugin-admob"
11
12
[dependencies]
13
-tauri = { version = "2.4.0" }
14
-serde = "1.0"
13
+tauri = { version = "2" }
14
+serde = "1"
15
thiserror = "2"
16
17
[build-dependencies]
18
-tauri-plugin = { version = "2.1.0", features = ["build"] }
18
+tauri-plugin = { version = "2", features = ["build"] }
bun.lockb
Binary files a/bun.lockb and b/bun.lockb differ
dist-js/ads/rewarded.d.ts
-3
@@ -1,13 +1,10 @@
1
import { MobileAd, type MobileAdOptions } from "./common";
2
-import { PluginListener } from "@tauri-apps/api/core";
2
export declare class RewardedAd extends MobileAd<RewardedAdOptions> {
3
static cls: string;
4
isLoaded(): Promise<unknown>;
5
load(): Promise<void>;
6
show(): Promise<void>;
8
- onRewarded(handler: (payload: any) => void): Promise<PluginListener>;
7
}
10
-export declare function onRewarded(handler: (payload: any) => void): Promise<PluginListener>;
8
export declare class RewardedInterstitialAd extends MobileAd<RewardedAdOptions> {
9
static cls: string;
10
isLoaded(): Promise<unknown>;
dist-js/index.cjs
-7
@@ -129,14 +129,8 @@ var RewardedAd = class extends MobileAd {
129
async show() {
130
return super.show();
131
}
132
- async onRewarded(handler) {
133
- return await (0, __tauri_apps_api_core.addPluginListener)("admob", "rewarded_reward", handler);
134
- }
132
};
133
RewardedAd.cls = "RewardedAd";
137
-async function onRewarded(handler) {
138
- return await (0, __tauri_apps_api_core.addPluginListener)("admob", "rewarded/reward", handler);
139
-}
134
var RewardedInterstitialAd = class extends MobileAd {
135
isLoaded() {
136
return super.isLoaded();
@@ -157,5 +151,4 @@ exports.MobileAd = MobileAd;
151
exports.RewardedAd = RewardedAd;
152
exports.RewardedInterstitialAd = RewardedInterstitialAd;
153
exports.isPrivacyOptionsRequired = isPrivacyOptionsRequired;
160
-exports.onRewarded = onRewarded;
154
exports.showPrivacyOptionsForm = showPrivacyOptionsForm;
\ No newline at end of file
dist-js/index.js
+2
-8
@@ -1,4 +1,4 @@
1
-import { addPluginListener, invoke } from "@tauri-apps/api/core";
1
+import { invoke } from "@tauri-apps/api/core";
2
3
//#region node_modules/.pnpm/@rollup+plugin-typescript@11.1.6_rollup@2.79.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js
4
function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -129,14 +129,8 @@ var RewardedAd = class extends MobileAd {
129
async show() {
130
return super.show();
131
}
132
- async onRewarded(handler) {
133
- return await addPluginListener("admob", "rewarded_reward", handler);
134
- }
132
};
133
RewardedAd.cls = "RewardedAd";
137
-async function onRewarded(handler) {
138
- return await addPluginListener("admob", "rewarded/reward", handler);
139
-}
134
var RewardedInterstitialAd = class extends MobileAd {
135
isLoaded() {
136
return super.isLoaded();
@@ -151,4 +145,4 @@ var RewardedInterstitialAd = class extends MobileAd {
145
RewardedInterstitialAd.cls = "RewardedInterstitialAd";
146
147
//#endregion
154
-export { BannerAd, InterstitialAd, MobileAd, RewardedAd, RewardedInterstitialAd, isPrivacyOptionsRequired, onRewarded, showPrivacyOptionsForm };
\ No newline at end of file
148
+export { BannerAd, InterstitialAd, MobileAd, RewardedAd, RewardedInterstitialAd, isPrivacyOptionsRequired, showPrivacyOptionsForm };
\ No newline at end of file
examples/tauri-app/src-tauri/capabilities/android.json
new
+8
@@ -0,0 +1,8 @@
1
+{
2
+ "$schema": "../gen/schemas/android-schema.json",
3
+ "identifier": "android-capabilities",
4
+ "description": "Capabilities for the Android platform.",
5
+ "platforms": ["android"],
6
+ "windows": ["main"],
7
+ "permissions": ["admob:default"]
8
+}
examples/tauri-app/src-tauri/capabilities/default.json
+1
-12
@@ -3,16 +3,5 @@
3
"identifier": "default",
4
"description": "enables the default permissions",
5
"windows": ["main"],
6
- "permissions": [
7
- "path:default",
8
- "event:default",
9
- "window:default",
10
- "webview:default",
11
- "app:default",
12
- "resources:default",
13
- "image:default",
14
- "menu:default",
15
- "tray:default",
16
- "admob:default"
17
- ]
6
+ "permissions": []
7
}
package.json
+8
-5
@@ -12,7 +12,10 @@
12
"import": "./dist-js/index.js",
13
"require": "./dist-js/index.cjs"
14
},
15
- "files": ["dist-js", "README.md"],
15
+ "files": [
16
+ "dist-js",
17
+ "README.md"
18
+ ],
19
"scripts": {
20
"build": "rolldown -c",
21
"prepublishOnly": "bun run check && bun run build",
@@ -25,14 +28,14 @@
28
"check": "biome check"
29
},
30
"dependencies": {
28
- "@tauri-apps/api": ">=2.0.0-beta.6"
31
+ "@tauri-apps/api": "^2.9.0"
32
},
33
"devDependencies": {
34
"@biomejs/biome": "1.9.4",
35
"@rollup/plugin-typescript": "^11.1.6",
36
"@tauri-apps/cli": "next",
34
- "rolldown": "^1.0.0-beta.6",
35
- "tslib": "^2.6.3",
36
- "typescript": "^5.5.3"
37
+ "rolldown": "1.0.0-beta.52",
38
+ "tslib": "^2.8.1",
39
+ "typescript": "^5.9.3"
40
}
41
}