Skip to content

2.21.3

Latest
Compare
Choose a tag to compare
@QARight QARight released this 09 Jan 13:05

implementation("com.github.YolandaQingniu:qnscalesdkX:2.21.3")

注意: 在如果您的app的targetSdk>30,且手机的系统版本为安卓12及以上,则需要在AndroidManifest声明并在运行时申请以下权限
android.permission.BLUETOOTH_ADVERTISE
android.permission.BLUETOOTH_SCAN
android.permission.BLUETOOTH_CONNECT

否则需要
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION

Google官方的适配文档:
https://developer.android.com/guide/topics/connectivity/bluetooth/permissions

ATTENTION: If the targetSdk version of your app is greater than 30 and the phone system version is Android 12 or higher, the following runtime permissions are required.
android.permission.BLUETOOTH_ADVERTISE
android.permission.BLUETOOTH_SCAN
android.permission.BLUETOOTH_CONNECT

else we need
android.permission.BLUETOOTH
android.permission.BLUETOOTH_ADMIN
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION

Google's official documentation:
https://developer.android.com/guide/topics/connectivity/bluetooth/permissions

优化用户秤功能