Skip to content

Commit

Permalink
chore(screen-orientation): Add SPM support to screen-orientation (ion…
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer authored and LaravelFreelancerNL committed Dec 19, 2023
1 parent 4c45a62 commit d22735a
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 803 deletions.
10 changes: 8 additions & 2 deletions screen-orientation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ Pods
Podfile.lock
Build
xcuserdata
*.xcworkspacedata
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

# macOS files
.DS_Store
Expand Down Expand Up @@ -60,4 +66,4 @@ captures

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
*.tgz
*.tgz
2 changes: 1 addition & 1 deletion screen-orientation/CapacitorScreenOrientation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.homepage = 'https://capacitorjs.com'
s.author = package['author']
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'screen-orientation/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'screen-orientation/ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '13.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
Expand Down
14 changes: 14 additions & 0 deletions screen-orientation/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "capacitor6-spm-test",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ionic-team/capacitor6-spm-test.git",
"state" : {
"branch" : "main",
"revision" : "cf4ff2bc1dffb14adc27b1e5a09ac37e85424b99"
}
}
],
"version" : 2
}
28 changes: 28 additions & 0 deletions screen-orientation/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "CapacitorScreenOrientation",
platforms: [.iOS(.v13)],
products: [
.library(
name: "ScreenOrientationPlugin",
targets: ["ScreenOrientationPlugin"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")
],
targets: [
.target(
name: "ScreenOrientationPlugin",
dependencies: [
.product(name: "Capacitor", package: "capacitor6-spm-test"),
.product(name: "Cordova", package: "capacitor6-spm-test")
],
path: "ios/Sources/ScreenOrientationPlugin"),
.testTarget(
name: "ScreenOrientationPluginTests",
dependencies: ["ScreenOrientationPlugin"],
path: "ios/Tests/ScreenOrientationPluginTests")
]
)
Loading

0 comments on commit d22735a

Please sign in to comment.