mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: remove firmware assets from release
This commit is contained in:
parent
5946399fd8
commit
c4db056b1f
9 changed files with 13 additions and 79 deletions
|
|
@ -1 +0,0 @@
|
|||
../../../../../meshtastic-esp32/release/latest/forandroid
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
package com.geeksville.mesh.repository.radio
|
||||
|
||||
import android.app.Application
|
||||
import com.geeksville.mesh.*
|
||||
import com.geeksville.mesh.android.Logging
|
||||
import com.geeksville.mesh.concurrent.handledLaunch
|
||||
|
|
@ -23,7 +22,6 @@ private val defaultChannel = channel {
|
|||
|
||||
/** A simulated interface that is used for testing in the simulator */
|
||||
class MockInterface @AssistedInject constructor(
|
||||
private val context: Application,
|
||||
private val service: RadioInterfaceService,
|
||||
@Assisted val address: String,
|
||||
) : IRadioInterface, Logging {
|
||||
|
|
@ -189,7 +187,7 @@ class MockInterface @AssistedInject constructor(
|
|||
|
||||
MeshProtos.FromRadio.newBuilder().apply {
|
||||
metadata = deviceMetadata {
|
||||
firmwareVersion = context.getString(R.string.cur_firmware_version)
|
||||
firmwareVersion = "${BuildConfig.VERSION_NAME}.abcdefg"
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
../../../../../../meshtastic-esp32/release/latest/curfirmwareversion.xml
|
||||
10
app/src/main/res/values/curfirmwareversion.xml
Normal file
10
app/src/main/res/values/curfirmwareversion.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- This file is used by the android app for software updates.
|
||||
It reflects the firmware version included in: ./app/src/main/assets/firmware/
|
||||
Matches output from Meshtastic-device/bin/buildinfo.py 'long' & 'short' -->
|
||||
|
||||
<resources>
|
||||
<string name="cur_firmware_version" translatable="false">0.2.0.abcdefg</string>
|
||||
<string name="short_firmware_version" translatable="false">0.2.0</string>
|
||||
</resources>
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<resources>
|
||||
<string name="min_firmware_version" translatable="false">0.1.01</string>
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue