Skip to content

Commit

Permalink
Merge branch 'master' of github.com:capacitor-community/admob into ca…
Browse files Browse the repository at this point in the history
…pacitor-community-master
  • Loading branch information
tomkuk committed Feb 9, 2025
2 parents 915949e + fb44db6 commit b5f964c
Show file tree
Hide file tree
Showing 89 changed files with 11,850 additions and 9,902 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm install
- run: npm run lint

Expand All @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm install
- run: npm run lint

Expand All @@ -33,23 +33,23 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm install
- run: npm run verify:web

verify-android:
runs-on: ubuntu-latest
steps:
- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
node-version: 20
# - run: npm install
# - run: npm run verify:android

verify-ios:
Expand All @@ -58,6 +58,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
node-version: 20
- run: npm run verify:ios
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules/
Pods
Build
xcuserdata
.swiftpm

# macOS files
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
32 changes: 32 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"pins" : [
{
"identity" : "capacitor-swift-pm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ionic-team/capacitor-swift-pm.git",
"state" : {
"revision" : "bc99a4197e8a966c99912a644a9aa5710f7e3409",
"version" : "7.0.1"
}
},
{
"identity" : "swift-package-manager-google-mobile-ads",
"kind" : "remoteSourceControl",
"location" : "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
"state" : {
"revision" : "7778cc1ab037c10dbbe026959e51e616bd961be9",
"version" : "11.13.0"
}
},
{
"identity" : "swift-package-manager-google-user-messaging-platform",
"kind" : "remoteSourceControl",
"location" : "https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git",
"state" : {
"revision" : "708a282840c2171ee63bd93b87afa49fe507d70e",
"version" : "2.7.0"
}
}
],
"version" : 2
}
30 changes: 30 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "CapacitorCommunityAdmob",
platforms: [.iOS(.v14)],
products: [
.library(
name: "CapacitorCommunityAdmob",
targets: ["AdMobPlugin"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
.package(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", from: "11.3.0")
],
targets: [
.target(
name: "AdMobPlugin",
dependencies: [
.product(name: "Capacitor", package: "capacitor-swift-pm"),
.product(name: "Cordova", package: "capacitor-swift-pm"),
.product(name: "GoogleMobileAds", package: "swift-package-manager-google-mobile-ads")
],
path: "ios/Sources/AdMobPlugin"),
.testTarget(
name: "AdMobPluginTests",
dependencies: ["AdMobPlugin"],
path: "ios/Tests/AdMobPluginTests")
]
)
4 changes: 2 additions & 2 deletions QuquplayAdmob.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ 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.ios.deployment_target = '13.0'
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '14.0'
s.swift_version = '5.1'
s.static_framework = true
s.dependency 'Capacitor'
Expand Down
Loading

0 comments on commit b5f964c

Please sign in to comment.