Bump Adwaita version

This commit is contained in:
Zaphhh 2024-10-18 19:22:54 +01:00
parent 571996fbec
commit dd7af8c6e3
2 changed files with 11 additions and 9 deletions

View File

@ -13,22 +13,24 @@ let package = Package(
.library(name: "CWebView", targets: ["CWebView"]), .library(name: "CWebView", targets: ["CWebView"]),
], ],
dependencies: [ dependencies: [
.package(url: "https://github.com/AparokshaUI/Adwaita", branch: "main"), .package(url: "https://git.aparoksha.dev/aparoksha/adwaita-swift", from: "0.1.0")
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite. // Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies. // Targets can depend on other targets in this package and products from dependencies.
.target(name: "WebView", .target(
name: "WebView",
dependencies: [ dependencies: [
.product(name: "Adwaita", package: "Adwaita"), .product(name: "Adwaita", package: "adwaita-swift"),
"CWebView" "CWebView",
]), ]),
.systemLibrary(name: "CWebView", .systemLibrary(
name: "CWebView",
pkgConfig: "webkitgtk-6.0"), pkgConfig: "webkitgtk-6.0"),
.executableTarget( .executableTarget(
name: "Test", name: "Test",
dependencies: ["WebView", "Adwaita"], dependencies: ["WebView"],
path: "Tests") path: "Tests"),
] ]
) )

View File

@ -3,7 +3,7 @@ import WebView
@main @main
struct Test: App { struct Test: App {
var app = AdwaitaApp(id:"xyz.zaph.webview") var app = AdwaitaApp(id: "xyz.zaph.webview")
@State private var url: String = "https://git.aparoksha.dev/aparoksha/adwaita-swift" @State private var url: String = "https://git.aparoksha.dev/aparoksha/adwaita-swift"