Skip to content

Commit

Permalink
Merge branch 'jensck/b5som_support'
Browse files Browse the repository at this point in the history
  • Loading branch information
jensck committed Jun 16, 2020
2 parents 5e7d12d + 69362a7 commit 7098fc3
Show file tree
Hide file tree
Showing 39 changed files with 998 additions and 118 deletions.
40 changes: 40 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
minSdkVersion 21
targetSdkVersion 28
// scheme for these version numbers: EPOCH MAJOR MINOR PATCH BUILD
versionCode 1_03_00_02_00
versionName "3.0.2"
versionCode 1_03_01_00_03
versionName "3.1.0"

vectorDrawables.useSupportLibrary = false // no need for this since we're min SDK=21

Expand Down Expand Up @@ -65,6 +65,11 @@ android {
androidExtensions {
experimental = true
}

kotlinOptions {
jvmTarget = "1.8"
}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.fragment.app.FragmentActivity
import io.particle.android.sdk.cloud.ParticleDevice
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.ARGON
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.A_SOM
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.B5_SOM
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.BLUZ
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.BORON
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.B_SOM
Expand Down Expand Up @@ -44,6 +45,7 @@ fun flashTinkerWithDialog(
ARGON -> R.raw.tinker_firmware_080_rc27_argon
BORON -> R.raw.tinker_firmware_080_rc27_boron
XENON -> R.raw.tinker_firmware_080_rc27_xenon
B5_SOM -> R.raw.b5som_tinker_1_4_5_b5som_2

CORE -> {
flashKnownAppWithDialog(activity, device, ParticleDevice.KnownApp.TINKER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import io.particle.android.sdk.cloud.ParticleDevice
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.ARGON
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.A_SOM
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.B5_SOM
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.BORON
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.B_SOM
import io.particle.android.sdk.cloud.ParticleDevice.ParticleDeviceType.ELECTRON
Expand Down Expand Up @@ -37,7 +38,7 @@ enum class OnlineStatusFilter {
}

enum class DeviceTypeFilter {
BORON, // also B SoM
BORON, // also B SoM/B5 SoM
ELECTRON, // also E SoM
ARGON, // also A SoM
PHOTON, // also P1
Expand Down Expand Up @@ -102,6 +103,7 @@ private fun ParticleDeviceType?.toDeviceTypeFilter(): DeviceTypeFilter {
ARGON -> DeviceTypeFilter.ARGON

B_SOM,
B5_SOM,
BORON -> DeviceTypeFilter.BORON

PHOTON,
Expand Down
Binary file not shown.
Loading

0 comments on commit 7098fc3

Please sign in to comment.