Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling from parent #3

Open
wants to merge 91 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
8a04ac3
fix: android 12 enable permissions call
samvimes01 Oct 18, 2022
58edfca
Improve backwards compatibility for #941
peitschie Oct 18, 2022
4821b40
Improve Android 11 background permissions request ordering
peitschie Aug 9, 2022
ba0219f
Document advanced android scan options
peitschie Aug 11, 2022
09e05cf
Prevent NPE if device disconnects before device cache refresh #936
peitschie Oct 14, 2022
0f8a2f7
Prevent NPE after L2CAP socket disconnects
peitschie Oct 14, 2022
6abdc11
Improve release documentation
peitschie Oct 14, 2022
26a142d
Android: Prevent various exceptions on stopScan #901 #871
peitschie Oct 14, 2022
bd2734b
Android: Clear up time-based stopScan when new scan is started #902
peitschie Oct 14, 2022
4c2ceab
Android: Report if Bluetooth is disabled when scanning/connecting #826
peitschie Oct 14, 2022
8d574ca
Android: More carefully manage permission callbacks to avoid NPEs #77…
peitschie Oct 14, 2022
216fe2e
Restore refreshCallback override behaviour #936
peitschie Oct 18, 2022
299d1db
Clear refreshCallback when a new connect attempt is made
peitschie Oct 18, 2022
77d8f13
Merge pull request #938 from don/next
peitschie Oct 18, 2022
21286c3
1.6.0
peitschie Oct 18, 2022
efab106
Add missing change note
peitschie Oct 18, 2022
8da824c
Add documentation for a `-slim` variant of the plugin
peitschie Nov 8, 2022
7e56554
Add registry to config
peitschie Nov 8, 2022
dd7f491
1.6.1
peitschie Nov 8, 2022
5117f08
Remove obsolete cordova wp8 platform
peitschie Dec 22, 2022
e9d17db
Include capacitor in keywords list
peitschie Dec 22, 2022
b342867
Android: More thoroughly clean up callbacks on device disconnect #954
peitschie Feb 15, 2023
7b8ad1c
Android: Don't disconnect if refreshDeviceCache fails
peitschie Feb 15, 2023
d6751a5
Android: Don't leak refreshDeviceCache callback
peitschie Feb 15, 2023
18400f5
1.6.2
peitschie Feb 15, 2023
a3c6265
Implement manual bond control on Android (#605)
peitschie Apr 9, 2021
40dc99e
Remove isDiscovering check
peitschie Feb 18, 2023
27e1235
Request correct permissions on Android 12+
peitschie Feb 18, 2023
58e212a
Merge pull request #843 from peitschie/bonding
peitschie Feb 18, 2023
42c4501
1.6.3
peitschie Feb 19, 2023
b894ea0
Detail capacitor installation instructions
peitschie Feb 28, 2023
41ee114
update readme with info for advertisement parsing module
May 4, 2023
5f0ca3d
Merge pull request #965 from jospete/feature/unified-advertisements
peitschie May 4, 2023
9c29e21
Create GitHub Actions for Cordova (#968)
peitschie May 6, 2023
f131861
Add duration flag (in seconds) to scan with options
peitschie May 5, 2023
6d507fd
Standardise all scans to go via scanWithOptions
peitschie May 6, 2023
47e8f09
Create GitHub Capacitor Actions (#969)
peitschie May 6, 2023
2349ef0
Update cordova.yml (#970)
peitschie May 6, 2023
2d933e5
Android: Ensure scan timeout is cleared and reset when new scans are …
peitschie May 19, 2023
b728ffc
iOS: Ensure scan timeout is cleared and reset when new scans are started
peitschie May 19, 2023
3946f97
Prevent API warnings on iOS if Bluetooth is disabled during timed scan
peitschie May 20, 2023
b4704db
Merge pull request #967 from don/scan-with-timeout
peitschie May 20, 2023
f4039b0
Reformat plugin.xml using @xmldom/xmldom (no content changes)
peitschie May 20, 2023
501f54b
Clean up npm package to exclude unnecessary bits
peitschie May 20, 2023
e721cf6
Automatically align versions and add tooling for making slim variant
peitschie May 20, 2023
924f5c6
Update commit instructions
peitschie May 20, 2023
7cabaab
1.7.0
peitschie May 20, 2023
086e75f
Tweaks to make slim variant producer simpler to use
peitschie May 20, 2023
633d889
Re-indent yaml file
peitschie Jun 7, 2023
73aa72e
Android: Add androidx.annotation reference for RequiresPermission att…
peitschie Jun 7, 2023
3df3c4e
Bump capacitor3 builds to node 14
peitschie Jun 7, 2023
b4c7e7a
Disable capacitor3 builds again
peitschie Jun 7, 2023
aaa158e
Merge pull request #978 from don/androidx-deps
peitschie Aug 13, 2023
b850269
Implement forceScanFilter for Android (#989)
younesspotmaster Sep 21, 2023
12e4f64
1.7.1
peitschie Sep 21, 2023
8b826e1
Feature Request: isConnectable Property for Android #823 (#993)
Gargamil Nov 3, 2023
912ce83
Add connectable flag to type definitions
peitschie Nov 3, 2023
a9745ce
1.7.2
peitschie Nov 3, 2023
056093c
Add build badges
peitschie Nov 4, 2023
073c80d
Clarify license as Apache-2.0 with full text
peitschie Nov 4, 2023
1727fd1
Update and rename CHANGES.txt to CHANGELOG.md (#1001)
fudom Jan 24, 2024
5925367
Update README.md
peitschie Mar 12, 2024
c805c5e
Update maintained status in README.md
peitschie Mar 14, 2024
6ffb5f7
Fix cordova CI (#1009)
peitschie Mar 20, 2024
11026a0
fix: added mtu to success callback
ksievers-irco May 16, 2024
7c5ea51
Prepare for 1.7.3 release
peitschie May 16, 2024
1dcafeb
1.7.3
peitschie May 16, 2024
8be79ef
Support Cordova 13 in CI (#1019)
peitschie Jun 25, 2024
028f2df
More cleanly support isConnected usage with a bool return value
peitschie Jun 25, 2024
4bb392c
Prepare for 1.7.4 release
peitschie Jun 26, 2024
2ebde63
1.7.4
peitschie Jun 26, 2024
2ce4c56
Improve input validation of UUIDs on iOS to avoid crashes (#1014, #905)
peitschie Jul 13, 2024
bfab8c1
Address iOS deprecation warnings & general warnings (#919)
peitschie Jul 13, 2024
28a6103
Harden up iOS service discovery (#741)
peitschie Jul 13, 2024
fab4fe4
Suppress permission-related lint warnings on Android
peitschie Jun 7, 2024
a5a15be
Mark broadcast receivers as exported for Android v34 (#1020)
peitschie Jul 13, 2024
82c65df
Fix incorrect string comparison on Android background location
peitschie Jul 14, 2024
3eedb64
Prepare for 1.7.5 release
peitschie Jul 14, 2024
8e7e078
1.7.5-alpha.0
peitschie Jul 14, 2024
956b605
Only mark export/non-export for non-system receivers on Android v34 (…
peitschie Jul 23, 2024
7984913
1.7.5-alpha.1
peitschie Jul 23, 2024
748b89d
1.7.5
peitschie Aug 30, 2024
ed3163d
Update ble.js with require cordova.exec
sithwarrior Aug 30, 2024
94a966d
Prepare for 1.7.6 release
peitschie Sep 8, 2024
fd5577d
1.7.6
peitschie Sep 8, 2024
0827dca
Fix support for 16 & 32-bit UUIDs on iOS (#1031)
peitschie Sep 10, 2024
45a79bb
Prepare for 1.7.7 release
peitschie Sep 10, 2024
b5518ca
1.7.7
peitschie Sep 10, 2024
4c3f0ea
Properly convert peripheral UUID for isConnected on iOS (#1033)
peitschie Sep 12, 2024
cd5c37c
Prepare for 1.7.8 release
peitschie Sep 12, 2024
860455c
1.7.8
peitschie Sep 12, 2024
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
82 changes: 82 additions & 0 deletions .github/workflows/capacitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Capacitor

on:
workflow_dispatch:
push:
branches: ['master']
pull_request:
branches: ['master']

jobs:
capacitor-android:
name: android@${{ matrix.capacitor }}

runs-on: ubuntu-latest

strategy:
matrix:
include:
- jdk: 17
capacitor: latest
node: 18.x
- jdk: 11
capacitor: 4
node: 14.x

steps:
- uses: actions/checkout@v3
- name: set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
mkdir temp
cd temp
mkdir www
touch www/index.html
npm init -y
npm install ..
npm install @capacitor/cli@${{ matrix.capacitor }} @capacitor/core@${{ matrix.capacitor }} @capacitor/android@${{ matrix.capacitor }}
npx cap init test io.test.app
npx cap add android
npx cap sync android
cd android
chmod +x gradlew
./gradlew build

capacitor-ios:
name: ios@${{ matrix.capacitor }}
runs-on: macos-latest

strategy:
matrix:
include:
- capacitor: latest
node: 18.x

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
mkdir temp
cd temp
mkdir www
touch www/index.html
npm init -y
npm install ..
npm install @capacitor/cli@${{ matrix.capacitor }} @capacitor/core@${{ matrix.capacitor }} @capacitor/ios@${{ matrix.capacitor }}
npx cap init test io.test.app
npx cap add ios
npx cap sync ios
cd ios
xcodebuild -workspace App/App.xcworkspace -scheme CapacitorCordova -configuration Debug -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14 Pro Max"
96 changes: 96 additions & 0 deletions .github/workflows/cordova.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Cordova

on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
cordova-android:
name: android@${{ matrix.platform }} cordova@${{ matrix.cordova }}

runs-on: ubuntu-${{ matrix.ubuntu }}

strategy:
fail-fast: false
matrix:
include:
- jdk: 17
cordova: latest
platform: latest
node: 18.x
ubuntu: 22.04
android-cmdline-tools-version: 10406996
- jdk: 16
cordova: 12
platform: 12
node: 18.x
ubuntu: 22.04
android-cmdline-tools-version: 9862592
- jdk: 11
cordova: 11
platform: 10
node: 14.x
ubuntu: 20.04
android-cmdline-tools-version: 9862592
- jdk: 8
cordova: 10
platform: 10
node: 14.x
ubuntu: 20.04
android-cmdline-tools-version: 8512546

steps:
- uses: actions/checkout@v3
- name: Setup JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: ${{ matrix.android-cmdline-tools-version }}
- name: Build test app
run: |
sdkmanager "build-tools;30.0.3"
sdkmanager "build-tools;34.0.0"
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add android@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build android

cordova-ios:
name: ios@${{ matrix.platform }} cordova@${{ matrix.cordova }}

runs-on: macos-latest

strategy:
matrix:
include:
- cordova: latest
platform: latest
node: 18.x

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Build test app
run: |
npm install -g cordova@${{ matrix.cordova }}
cordova create temp
cd temp
cordova platform add ios@${{ matrix.platform }}
cordova plugin add .. --noregistry --force --link
cordova build ios
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
*.DS_Store
node_modules
package-lock.json
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea/
*.DS_Store
node_modules
package-lock.json
.github
.vscode
examples
tests
tools
.prettierrc
cordova-plugin-ble-central.iml
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"options": {
"tabWidth": 2
}
},
{
"files": "*.yaml",
"options": {
"tabWidth": 2
}
}
]
}
Loading