Skip to content

Commit ee20c61

Browse files
committed
Merge branch 'dev'
2 parents b3f4b97 + acdf589 commit ee20c61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+3832
-731
lines changed

android-partial-flashing-lib

-1
This file was deleted.

app/build.gradle

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55
}
66

77
android {
8-
compileSdk 34
8+
compileSdk 35
99

1010
defaultConfig {
1111
applicationId "cc.calliope.mini"
1212
minSdk 23
13-
targetSdk 34
13+
targetSdk 35
1414
versionCode 23
1515
versionName '2.0.5'
1616
multiDexEnabled true
@@ -39,16 +39,19 @@ android {
3939
}
4040

4141
dependencies {
42+
implementation project(":partialflashing")
43+
4244
implementation 'no.nordicsemi.android.kotlin.ble:scanner:1.1.0'
4345
implementation 'no.nordicsemi.android:dfu:2.6.0'
4446

4547
implementation 'commons-io:commons-io:2.16.1'
4648
implementation 'org.apache.commons:commons-lang3:3.15.0'
4749

4850
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
49-
implementation 'androidx.navigation:navigation-fragment-ktx:2.8.4'
50-
implementation 'androidx.navigation:navigation-ui-ktx:2.8.4'
51+
implementation 'androidx.navigation:navigation-fragment-ktx:2.8.5'
52+
implementation 'androidx.navigation:navigation-ui-ktx:2.8.5'
5153
implementation 'androidx.preference:preference-ktx:1.2.1'
5254

5355
implementation 'androidx.browser:browser:1.8.0'
56+
implementation 'com.google.android.material:material:1.4.0'
5457
}

app/src/main/AndroidManifest.xml

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@
122122
<service
123123
android:name=".core.service.LegacyDfuService"
124124
android:enabled="true" />
125+
<service
126+
android:name=".core.service.PartialFlashingService"
127+
android:enabled="true" />
128+
<service
129+
android:name=".core.service.PartialFlashingInitService"
130+
android:enabled="true" />
125131
<service
126132
android:name=".core.bluetooth.CheckService"
127133
android:enabled="true" />

app/src/main/java/cc/calliope/mini/BluetoothService.kt

-76
This file was deleted.

app/src/main/java/cc/calliope/mini/WebAppInterface.kt

-30
This file was deleted.

app/src/main/java/cc/calliope/mini/WebBluetoothFragment.kt

-126
This file was deleted.

app/src/main/java/cc/calliope/mini/activity/BaseActivity.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,11 @@ public void startBluetoothEnableActivity(View view) {
394394

395395
public void onFabClick(View view) {
396396
State state = ApplicationStateHandler.getStateLiveData().getValue();
397-
boolean flashing = false;
398-
if (state != null) {
399-
flashing = state.getType() == State.STATE_FLASHING;
397+
if (state == null) {
398+
return;
400399
}
401400

402-
if (flashing) {
401+
if (state.getType() == State.STATE_FLASHING || state.getType() == State.STATE_BUSY) {
403402
startFlashingActivity();
404403
} else {
405404
createPopupMenu(view);

app/src/main/java/cc/calliope/mini/activity/FlashingActivity.java

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ protected void onPause() {
143143

144144
@Override
145145
public void onBackPressed() {
146+
super.onBackPressed();
146147
finish();
147148
}
148149

0 commit comments

Comments
 (0)