Skip to content

Commit

Permalink
Removing useless plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Jun 19, 2024
1 parent e323293 commit 9e091b9
Show file tree
Hide file tree
Showing 22 changed files with 496 additions and 588 deletions.
8 changes: 5 additions & 3 deletions src-plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]
links = "tauri-plugin-ahqstore"

[dependencies]
tauri = { version = "2.0.0-beta.22" }
tauri = { git = "https://github.com/tauri-apps/tauri", version = "2.0.0-beta.22" }
serde = "1.0"
thiserror = "1.0"

[build-dependencies]
tauri-plugin = { version = "2.0.0-beta.17", features = ["build"] }
tauri-build = "2.0.0-beta.17"
tauri-plugin = { git = "https://github.com/tauri-apps/tauri", features = [
"build",
] }
tauri-build = { git = "https://github.com/tauri-apps/tauri" }
9 changes: 6 additions & 3 deletions src-plugin/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
buildConfig = true
}
}

dependencies {

implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.0")
implementation("com.google.android.material:material:1.7.0")
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.android.material:material:1.12.0")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
Expand Down
19 changes: 13 additions & 6 deletions src-plugin/android/src/main/java/ExamplePlugin.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.plugin.ahqstore

import android.webkit.WebView

import android.app.Activity
import app.tauri.annotation.Command
import app.tauri.annotation.InvokeArg
Expand All @@ -15,12 +17,17 @@ class PingArgs {

@TauriPlugin
class ExamplePlugin(private val activity: Activity): Plugin(activity) {
@Command
override fun load(webkit: WebView) {

}


@Command
fun ping(invoke: Invoke) {
val args = invoke.parseArgs(PingArgs::class.java)
@Command
fun ping(invoke: Invoke) {
val args = invoke.parseArgs(PingArgs::class.java)

val ret = JSObject()
invoke.resolve(ret)
}
val ret = JSObject()
invoke.resolve(ret)
}
}
4 changes: 2 additions & 2 deletions src-plugin/examples/tauri-app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ crate-type = ["staticlib", "cdylib", "rlib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = { version = "2.0.0-beta.17", default-features = false }
tauri-build = { version = "2.0.0-beta.17", default-features = false , features = [] }

[dependencies]
tauri = { version = "2.0.0-beta.22" }
tauri = { version = "2.0.0-beta.22", features = [] }
tauri-plugin-store-plugin = { path = "../../../" }
4 changes: 2 additions & 2 deletions src-plugin/permissions/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
}
},
"Scopes": {
"description": "A restriction of the command/endpoint functionality.\n\nIt can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.\n\nThe scope is passed to the command and handled/enforced by the command itself.",
"description": "An argument for fine grained behavior control of Tauri commands.\n\nIt can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.\n\n## Example\n\n```json { \"allow\": [{ \"path\": \"$HOME/**\" }], \"deny\": [{ \"path\": \"$HOME/secret.txt\" }] } ```",
"type": "object",
"properties": {
"allow": {
Expand All @@ -186,7 +186,7 @@
}
},
"deny": {
"description": "Data that defines what is denied by the scope.",
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
"type": [
"array",
"null"
Expand Down
Loading

0 comments on commit 9e091b9

Please sign in to comment.