Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,12 @@ captures

# VSCode
.vscode/settings.json

/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Package.resolved
/.build
2 changes: 1 addition & 1 deletion CapacitorCommunitySqlite.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.homepage = package['repository']['url']
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '14.0'
s.dependency 'Capacitor'
s.dependency 'SQLCipher'
Expand Down
32 changes: 32 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "CapacitorCommunitySqlite",
platforms: [.iOS(.v15)],
products: [
.library(
name: "CapacitorCommunitySqlite",
targets: ["CapacitorSQLitePlugin"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
.package(url: "https://github.com/sqlcipher/SQLCipher.swift.git", from: "4.12.0"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only allow patch and minor versions here to prevent breaking changes. Same for zipfoundation.

.package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.20")
],
targets: [
.target(
name: "CapacitorSQLitePlugin",
dependencies: [
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "SQLCipher", package: "SQLCipher.swift"),
.product(name: "ZIPFoundation", package: "ZIPFoundation")
],
path: "ios/Sources/CapacitorSQLitePlugin"),
.testTarget(
name: "CapacitorSQLitePluginTests",
dependencies: ["CapacitorSQLitePlugin"],
path: "ios/Tests/CapacitorSQLitePluginTests")
]
)
9 changes: 9 additions & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
.DS_Store
.build
773 changes: 0 additions & 773 deletions ios/Plugin.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

77 changes: 0 additions & 77 deletions ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme

This file was deleted.

68 changes: 0 additions & 68 deletions ios/Plugin.xcodeproj/xcshareddata/xcschemes/PluginTests.xcscheme

This file was deleted.

10 changes: 0 additions & 10 deletions ios/Plugin.xcworkspace/contents.xcworkspacedata

This file was deleted.

8 changes: 0 additions & 8 deletions ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions ios/Plugin/CapacitorSQLitePlugin.h

This file was deleted.

56 changes: 0 additions & 56 deletions ios/Plugin/CapacitorSQLitePlugin.m

This file was deleted.

24 changes: 0 additions & 24 deletions ios/Plugin/Info.plist

This file was deleted.

22 changes: 0 additions & 22 deletions ios/PluginTests/Info.plist

This file was deleted.

21 changes: 0 additions & 21 deletions ios/Podfile

This file was deleted.

Loading