Some checks are pending
Build Android (APK + AAB) / build-android (push) Waiting to run
Bug v1.10.1: BMS bat2 do Karlão expõe service ff00 mas zero RX no log após enviar comando JBD 0x03. Significa BMS usa firmware proprietário não-JBD. Implementação probe automático: - Enumera characteristics de cada vendor service (ff00, fff0, ffe0, 0203) - Lista UUIDs + propriedades (notify/indicate/write/wnr/read) no diagnóstico - Auto-detecta notify char (com property notify ou indicate) - Auto-detecta write char (com property write ou writeWithoutResponse) - Salva config em dev.bmsService/Notify/WriteChar pra reuso - Subscribe na notify char + listener com hex dump dos chunks RX - Tenta 4 protocolos sequencialmente (espera 2.5s entre cada): 1. JBD-0x03 (DD A5 03 00 FF FD 77) 2. JK-getInfo (AA 55 90 EB 96 00 ... — 20 bytes) 3. Daly-getInfo (A5 80 90 08 00 00 ... — 13 bytes) 4. JBD writeWithoutResponse fallback - Detecta resposta por byte de início (0xDD=JBD, 0xAA=JK, 0xA5=Daly) - Salva bmsProtocol no device pra usar no poll periódico - Stubs JK/Daly handlers (parsers específicos virão se BMS responder) Botão Re-ler agora re-roda probe completo (não só re-envia mesmo comando). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
63 lines
2.4 KiB
Groovy
63 lines
2.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
namespace "br.com.pontualtech.shivao"
|
|
compileSdk rootProject.ext.compileSdkVersion
|
|
defaultConfig {
|
|
applicationId "br.com.pontualtech.shivao"
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
versionCode 18
|
|
versionName "1.10.2"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
aaptOptions {
|
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
|
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
|
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
|
}
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
storeFile file('shivao-release.keystore')
|
|
storePassword 'ShivaoKeystore2026!'
|
|
keyAlias 'shivao'
|
|
keyPassword 'ShivaoKeystore2026!'
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
flatDir{
|
|
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
|
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
|
implementation project(':capacitor-android')
|
|
testImplementation "junit:junit:$junitVersion"
|
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
implementation project(':capacitor-cordova-android-plugins')
|
|
}
|
|
|
|
apply from: 'capacitor.build.gradle'
|
|
|
|
try {
|
|
def servicesJSON = file('google-services.json')
|
|
if (servicesJSON.text) {
|
|
apply plugin: 'com.google.gms.google-services'
|
|
}
|
|
} catch(Exception e) {
|
|
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
|
|
}
|