Skip to content

Commit

Permalink
Merge branch 'jensck/3-point-0-point-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jensck committed Sep 23, 2019
2 parents 770047d + 67c6ad1 commit 1e4eb09
Show file tree
Hide file tree
Showing 61 changed files with 214 additions and 473 deletions.
7 changes: 3 additions & 4 deletions .idea/assetWizardSettings.xml

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

8 changes: 8 additions & 0 deletions app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
3.0.2
======
- Crash fixes
- Remove some unnecessary resources, cutting down APK size
- Remove textviewrichdrawable library now that jetpack supports XML compound drawables
- Make the login screen the default if anyone has ever been logged in before
- Enable x86_64 builds

3.0.1
======
- Properly ellipsize long device names
Expand Down
11 changes: 4 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ android {
minSdkVersion 21
targetSdkVersion 28
// scheme for these version numbers: EPOCH MAJOR MINOR PATCH BUILD
versionCode 1_03_00_01_04
versionName "3.0.1"
versionCode 1_03_00_02_00
versionName "3.0.2"

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

ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a' //, "x86_64"
abiFilters 'armeabi-v7a', 'arm64-v8a', "x86_64"
}
}

Expand Down Expand Up @@ -94,9 +94,6 @@ dependencies {
// Support lib doesn't do the "speed dial" pattern off of FABs though, so that would have to be
// implemented by hand (and as such, might not be worth it.)
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation('com.f2prateek.bundler:bundler:1.1.2') {
exclude module: 'support-v4'
}

releaseImplementation 'com.google.firebase:firebase-core:17.2.0'
releaseImplementation 'com.google.firebase:firebase-analytics:17.2.0'
Expand All @@ -120,7 +117,7 @@ dependencies {
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'

implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

implementation 'androidx.lifecycle:lifecycle-common-java8:2.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ class TinkerFragment : Fragment(), OnClickListener {

if (TinkerPrefs.getInstance(requireActivity()).isFirstVisit) {
instructions_container.isVisible = true
fragmentManager?.commit {
add(R.id.instructions_container, InstructionsFragment())
addToBackStack("InstructionsFragment_TRANSACTION")
}
fragmentManager?.commit { add(R.id.instructions_container, InstructionsFragment()) }
}

updateState()
Expand Down Expand Up @@ -599,7 +596,7 @@ class InstructionsFragment : Fragment() {
val v = inflater.inflate(R.layout.tinker_instructions, container, false)
v.setOnClickListener {
TinkerPrefs.getInstance(activity!!).setVisited(true)
activity!!.supportFragmentManager.popBackStack()
fragmentManager?.commit { remove(this@InstructionsFragment) }
}
return v
}
Expand Down
211 changes: 0 additions & 211 deletions app/src/main/java/io/particle/android/sdk/ui/InfoFragment.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Parcelable
import android.view.Menu
import android.view.MenuItem
import android.view.View
Expand Down Expand Up @@ -71,7 +72,8 @@ class InspectorActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

if (savedInstanceState != null) {
if (savedInstanceState != null
|| intent.getParcelableExtra<Parcelable>(EXTRA_DEVICE) == null) {
finish()
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class DeviceListFragment : Fragment() {
add_device_fab.collapse()
}

@ExperimentalStdlibApi
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {

Expand Down Expand Up @@ -211,7 +211,7 @@ class DeviceListFragment : Fragment() {

override fun onDestroy() {
super.onDestroy()
deviceSetupCompleteReceiver!!.unregister(activity)
deviceSetupCompleteReceiver?.unregister(activity)
}

private fun onDeviceListUpdated(devices: List<ParticleDevice>) {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable-hdpi/spinner.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable-mdpi/spinner.png
Binary file not shown.
11 changes: 0 additions & 11 deletions app/src/main/res/drawable-v21/spinner.xml

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable-xhdpi/spinner.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable-xxxhdpi/spinner.png
Binary file not shown.
7 changes: 0 additions & 7 deletions app/src/main/res/drawable/progress_spinner.xml

This file was deleted.

9 changes: 6 additions & 3 deletions app/src/main/res/layout/fragment_filter_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
<ScrollView
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toTopOf="@id/action_button_divider"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -255,14 +254,18 @@

</LinearLayout>

<View
android:layout_width="match_parent"
android:layout_height="8dp" />

</LinearLayout>
</ScrollView>

<View
android:id="@+id/action_button_divider"
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginBottom="8dp"
android:layout_marginBottom="2dp"
android:background="?attr/dividerHorizontal"
app:layout_constraintBottom_toTopOf="@id/action_filter_device_list"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -273,7 +276,7 @@
style="@style/p_mesh_button_style"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_marginBottom="12dp"
android:layout_marginBottom="6dp"
android:text="Show X devices"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/guideline_end"
Expand Down
Loading

0 comments on commit 1e4eb09

Please sign in to comment.