diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..0c315a7 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,46 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '25 0 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: macos-13 + env: + DEVELOPER_DIR: "/Applications/Xcode_15.2.0.app/Contents/Developer" + timeout-minutes: 40 + permissions: + security-events: write + + steps: + - name: Set up build options + run: | + defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES + defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES + + - name: Checkout repository + uses: actions/checkout@v4 + - name: Configure SPM cache + uses: actions/cache@v4 + with: + path: ~/Library/Caches/org.swift.swiftpm + key: spm-${{ hashFiles('Package.swift') }} + restore-keys: | + spm- + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: swift + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:swift" diff --git a/App/InAppPurchaseViewer/InAppPurchaseViewer.xcodeproj/project.pbxproj b/App/InAppPurchaseViewer/InAppPurchaseViewer.xcodeproj/project.pbxproj index d6e0c23..f7e9fe0 100644 --- a/App/InAppPurchaseViewer/InAppPurchaseViewer.xcodeproj/project.pbxproj +++ b/App/InAppPurchaseViewer/InAppPurchaseViewer.xcodeproj/project.pbxproj @@ -3,14 +3,14 @@ archiveVersion = 1; classes = { }; - objectVersion = 56; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ + 457736392B8C6061007A66A3 /* IAPClient in Frameworks */ = {isa = PBXBuildFile; productRef = 457736382B8C6061007A66A3 /* IAPClient */; }; + 4577363B2B8C6061007A66A3 /* IAPView in Frameworks */ = {isa = PBXBuildFile; productRef = 4577363A2B8C6061007A66A3 /* IAPView */; }; 458FE15A2B6E239600798686 /* InAppPurchaseViewerApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 458FE1592B6E239600798686 /* InAppPurchaseViewerApp.swift */; }; 458FE15E2B6E239700798686 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 458FE15D2B6E239700798686 /* Assets.xcassets */; }; - 458FE16B2B6E243800798686 /* IAPView in Frameworks */ = {isa = PBXBuildFile; productRef = 458FE16A2B6E243800798686 /* IAPView */; }; - 458FE16D2B6FC60500798686 /* IAPClient in Frameworks */ = {isa = PBXBuildFile; productRef = 458FE16C2B6FC60500798686 /* IAPClient */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -26,8 +26,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 458FE16D2B6FC60500798686 /* IAPClient in Frameworks */, - 458FE16B2B6E243800798686 /* IAPView in Frameworks */, + 4577363B2B8C6061007A66A3 /* IAPView in Frameworks */, + 457736392B8C6061007A66A3 /* IAPClient in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -86,8 +86,8 @@ ); name = InAppPurchaseViewer; packageProductDependencies = ( - 458FE16A2B6E243800798686 /* IAPView */, - 458FE16C2B6FC60500798686 /* IAPClient */, + 457736382B8C6061007A66A3 /* IAPClient */, + 4577363A2B8C6061007A66A3 /* IAPView */, ); productName = InAppPurchaseViewer; productReference = 458FE1562B6E239600798686 /* InAppPurchaseViewer.app */; @@ -117,6 +117,9 @@ Base, ); mainGroup = 458FE14D2B6E239600798686; + packageReferences = ( + 4577362D2B8C6024007A66A3 /* XCLocalSwiftPackageReference "../.." */, + ); productRefGroup = 458FE1572B6E239600798686 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -362,14 +365,21 @@ }; /* End XCConfigurationList section */ +/* Begin XCLocalSwiftPackageReference section */ + 4577362D2B8C6024007A66A3 /* XCLocalSwiftPackageReference "../.." */ = { + isa = XCLocalSwiftPackageReference; + relativePath = ../..; + }; +/* End XCLocalSwiftPackageReference section */ + /* Begin XCSwiftPackageProductDependency section */ - 458FE16A2B6E243800798686 /* IAPView */ = { + 457736382B8C6061007A66A3 /* IAPClient */ = { isa = XCSwiftPackageProductDependency; - productName = IAPView; + productName = IAPClient; }; - 458FE16C2B6FC60500798686 /* IAPClient */ = { + 4577363A2B8C6061007A66A3 /* IAPView */ = { isa = XCSwiftPackageProductDependency; - productName = IAPClient; + productName = IAPView; }; /* End XCSwiftPackageProductDependency section */ };