-
Notifications
You must be signed in to change notification settings - Fork 3
feat: update deps #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
setoelkahfi
wants to merge
6
commits into
Dreaming-Codes:master
Choose a base branch
from
setoelkahfi:feature/android-update-deps
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f254a04
update deps
setoelkahfi c038cfe
track dist dir
setoelkahfi 0c8cc50
update rust and node deps
setoelkahfi 214a26c
stop tracking gen folder
setoelkahfi be802a5
update example app deps
setoelkahfi 41c6750
stop tracking generated schemes
setoelkahfi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| /build | ||
| /.tauri | ||
|
|
||
| # Android Studio | ||
| *.properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { MobileAd, type MobileAdOptions } from "./common"; | ||
| export declare class BannerAd extends MobileAd<BannerAdOptions> { | ||
| #private; | ||
| static cls: string; | ||
| constructor(opts: BannerAdOptions); | ||
| isLoaded(): Promise<unknown>; | ||
| load(): Promise<void>; | ||
| show(): Promise<void>; | ||
| hide(): Promise<void>; | ||
| } | ||
| export type BannerPosition = "top" | "bottom"; | ||
| export interface BannerAdOptions extends MobileAdOptions { | ||
| position?: BannerPosition; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| export declare function isPrivacyOptionsRequired(): Promise<boolean>; | ||
| export declare function showPrivacyOptionsForm(): Promise<void>; | ||
| export declare class MobileAd<T extends MobileAdOptions = MobileAdOptions> { | ||
| #private; | ||
| private static allAdds; | ||
| private static idCounter; | ||
| readonly id: number; | ||
| protected readonly opts: T; | ||
| constructor(opts: T); | ||
| private static nextId; | ||
| get adUnitId(): string; | ||
| protected isLoaded(): Promise<unknown>; | ||
| protected load(): Promise<void>; | ||
| protected show(): Promise<void>; | ||
| protected hide(): Promise<void>; | ||
| protected init(): Promise<void>; | ||
| } | ||
| export interface MobileAdOptions { | ||
| adUnitId: string; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { MobileAd } from "./common"; | ||
| export declare class InterstitialAd extends MobileAd { | ||
| static cls: string; | ||
| isLoaded(): Promise<unknown>; | ||
| load(): Promise<void>; | ||
| show(): Promise<void>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { MobileAd, type MobileAdOptions } from "./common"; | ||
| export declare class RewardedAd extends MobileAd<RewardedAdOptions> { | ||
| static cls: string; | ||
| isLoaded(): Promise<unknown>; | ||
| load(): Promise<void>; | ||
| show(): Promise<void>; | ||
| } | ||
| export declare class RewardedInterstitialAd extends MobileAd<RewardedAdOptions> { | ||
| static cls: string; | ||
| isLoaded(): Promise<unknown>; | ||
| load(): Promise<void>; | ||
| show(): Promise<void>; | ||
| } | ||
| export interface RewardedAdOptions extends MobileAdOptions { | ||
| serverSideVerification?: { | ||
| userId?: string; | ||
| customData?: string; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,154 @@ | ||
| let __tauri_apps_api_core = require("@tauri-apps/api/core"); | ||
|
|
||
| //#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 | ||
| function __classPrivateFieldGet(receiver, state, kind, f) { | ||
| if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
| if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
| return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
| } | ||
| function __classPrivateFieldSet(receiver, state, value, kind, f) { | ||
| if (kind === "m") throw new TypeError("Private method is not writable"); | ||
| if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | ||
| if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
| return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; | ||
| } | ||
|
|
||
| //#endregion | ||
| //#region guest-js/ads/common.ts | ||
| var _MobileAd_created, _MobileAd_init; | ||
| async function isPrivacyOptionsRequired() { | ||
| return (await (0, __tauri_apps_api_core.invoke)("plugin:admob|isPrivacyOptionsRequired")).isPrivacyOptionsRequired; | ||
| } | ||
| async function showPrivacyOptionsForm() { | ||
| await (0, __tauri_apps_api_core.invoke)("plugin:admob|showPrivacyOptionsForm"); | ||
| } | ||
| var MobileAd = class MobileAd { | ||
| constructor(opts) { | ||
| _MobileAd_created.set(this, false); | ||
| _MobileAd_init.set(this, null); | ||
| this.opts = opts; | ||
| this.id = MobileAd.nextId(); | ||
| MobileAd.allAdds[this.id] = this; | ||
| } | ||
| static nextId() { | ||
| return MobileAd.idCounter++; | ||
| } | ||
| get adUnitId() { | ||
| return this.opts.adUnitId; | ||
| } | ||
| async isLoaded() { | ||
| await this.init(); | ||
| return await (0, __tauri_apps_api_core.invoke)("plugin:admob|adIsLoaded", { id: this.id }); | ||
| } | ||
| async load() { | ||
| await this.init(); | ||
| await (0, __tauri_apps_api_core.invoke)("plugin:admob|adLoad", { | ||
| ...this.opts, | ||
| id: this.id | ||
| }); | ||
| } | ||
| async show() { | ||
| await this.init(); | ||
| await (0, __tauri_apps_api_core.invoke)("plugin:admob|adShow", { id: this.id }); | ||
| } | ||
| async hide() { | ||
| await this.init(); | ||
| await (0, __tauri_apps_api_core.invoke)("plugin:admob|adHide", { id: this.id }); | ||
| } | ||
| async init() { | ||
| if (__classPrivateFieldGet(this, _MobileAd_created, "f")) return; | ||
| if (__classPrivateFieldGet(this, _MobileAd_init, "f") === null) { | ||
| const cls = this.constructor.cls ?? this.constructor.name; | ||
| await (0, __tauri_apps_api_core.invoke)("plugin:admob|adCreate", { | ||
| ...this.opts, | ||
| id: this.id, | ||
| cls | ||
| }); | ||
| } | ||
| await __classPrivateFieldGet(this, _MobileAd_init, "f"); | ||
| __classPrivateFieldSet(this, _MobileAd_created, true, "f"); | ||
| } | ||
| }; | ||
| _MobileAd_created = /* @__PURE__ */ new WeakMap(), _MobileAd_init = /* @__PURE__ */ new WeakMap(); | ||
| MobileAd.allAdds = {}; | ||
| MobileAd.idCounter = 0; | ||
|
|
||
| //#endregion | ||
| //#region guest-js/ads/banner.ts | ||
| var _BannerAd_loaded; | ||
| var BannerAd = class extends MobileAd { | ||
| constructor(opts) { | ||
| super({ | ||
| position: "bottom", | ||
| ...opts | ||
| }); | ||
| _BannerAd_loaded.set(this, false); | ||
| } | ||
| isLoaded() { | ||
| return super.isLoaded(); | ||
| } | ||
| async load() { | ||
| await super.load(); | ||
| __classPrivateFieldSet(this, _BannerAd_loaded, true, "f"); | ||
| } | ||
| async show() { | ||
| if (!__classPrivateFieldGet(this, _BannerAd_loaded, "f")) await this.load(); | ||
| await super.show(); | ||
| } | ||
| hide() { | ||
| return super.hide(); | ||
| } | ||
| }; | ||
| _BannerAd_loaded = /* @__PURE__ */ new WeakMap(); | ||
| BannerAd.cls = "BannerAd"; | ||
|
|
||
| //#endregion | ||
| //#region guest-js/ads/interstitial.ts | ||
| var InterstitialAd = class extends MobileAd { | ||
| isLoaded() { | ||
| return super.isLoaded(); | ||
| } | ||
| async load() { | ||
| return super.load(); | ||
| } | ||
| async show() { | ||
| return super.show(); | ||
| } | ||
| }; | ||
| InterstitialAd.cls = "InterstitialAd"; | ||
|
|
||
| //#endregion | ||
| //#region guest-js/ads/rewarded.ts | ||
| var RewardedAd = class extends MobileAd { | ||
| isLoaded() { | ||
| return super.isLoaded(); | ||
| } | ||
| async load() { | ||
| return super.load(); | ||
| } | ||
| async show() { | ||
| return super.show(); | ||
| } | ||
| }; | ||
| RewardedAd.cls = "RewardedAd"; | ||
| var RewardedInterstitialAd = class extends MobileAd { | ||
| isLoaded() { | ||
| return super.isLoaded(); | ||
| } | ||
| async load() { | ||
| return super.load(); | ||
| } | ||
| async show() { | ||
| return super.show(); | ||
| } | ||
| }; | ||
| RewardedInterstitialAd.cls = "RewardedInterstitialAd"; | ||
|
|
||
| //#endregion | ||
| exports.BannerAd = BannerAd; | ||
| exports.InterstitialAd = InterstitialAd; | ||
| exports.MobileAd = MobileAd; | ||
| exports.RewardedAd = RewardedAd; | ||
| exports.RewardedInterstitialAd = RewardedInterstitialAd; | ||
| exports.isPrivacyOptionsRequired = isPrivacyOptionsRequired; | ||
| exports.showPrivacyOptionsForm = showPrivacyOptionsForm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export * from "./ads/common"; | ||
| export * from "./ads/banner"; | ||
| export * from "./ads/interstitial"; | ||
| export * from "./ads/rewarded"; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build fails from 24.6.0 onwards