diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc15e15..a2c16ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,28 @@ jobs: - name: Lint run: yarn lint + build-example: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + working-directory: example + + - name: Build example + run: yarn build + working-directory: example + verify-android: runs-on: ubuntu-latest steps: @@ -76,7 +98,7 @@ jobs: create-pr: runs-on: ubuntu-latest - needs: [lint, verify-ios, verify-android] + needs: [lint, verify-ios, verify-android, build-example] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/example/android/app/capacitor.build.gradle b/example/android/app/capacitor.build.gradle index cf42580..19f49c7 100644 --- a/example/android/app/capacitor.build.gradle +++ b/example/android/app/capacitor.build.gradle @@ -10,9 +10,9 @@ android { apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" dependencies { implementation project(':capacitor-community-bluetooth-le') - implementation project(':capacitor-community-nordic-dfu') implementation project(':capacitor-filesystem') implementation project(':capawesome-capacitor-file-picker') + implementation project(':capacitor-community-nordic-dfu') } diff --git a/example/android/capacitor.settings.gradle b/example/android/capacitor.settings.gradle index dadf7bf..bcdde7f 100644 --- a/example/android/capacitor.settings.gradle +++ b/example/android/capacitor.settings.gradle @@ -5,11 +5,11 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/ include ':capacitor-community-bluetooth-le' project(':capacitor-community-bluetooth-le').projectDir = new File('../node_modules/@capacitor-community/bluetooth-le/android') -include ':capacitor-community-nordic-dfu' -project(':capacitor-community-nordic-dfu').projectDir = new File('../node_modules/capacitor-community-nordic-dfu/android') - include ':capacitor-filesystem' project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android') include ':capawesome-capacitor-file-picker' project(':capawesome-capacitor-file-picker').projectDir = new File('../node_modules/@capawesome/capacitor-file-picker/android') + +include ':capacitor-community-nordic-dfu' +project(':capacitor-community-nordic-dfu').projectDir = new File('../../android') diff --git a/example/ios/App/Podfile b/example/ios/App/Podfile index a378d13..309512b 100644 --- a/example/ios/App/Podfile +++ b/example/ios/App/Podfile @@ -12,9 +12,9 @@ def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCommunityBluetoothLe', :path => '../../node_modules/@capacitor-community/bluetooth-le' - pod 'CapacitorCommunityNordicDfu', :path => '../../node_modules/capacitor-community-nordic-dfu' pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem' pod 'CapawesomeCapacitorFilePicker', :path => '../../node_modules/@capawesome/capacitor-file-picker' + pod 'CapacitorCommunityNordicDfu', :path => '../../..' end target 'App' do