Skip to content

Commit

Permalink
Deletion of unused resources, small design improvements and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
retanar committed Jan 8, 2021
1 parent e463e7a commit d329c26
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 47 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ android {
versionCode 1
versionName "0.3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions app/src/main/res/layout/divergence_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:background="@android:color/black"
tools:ignore="ContentDescription">
<ImageView
android:id="@+id/tube6"
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#8C2800</color>
<color name="colorPrimaryDark">#4D1600</color>
<color name="colorAccent">#0095e6</color>
</resources>
4 changes: 0 additions & 4 deletions app/src/main/res/values/dimens.xml

This file was deleted.

4 changes: 0 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/xml/divergence_widget_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:minWidth="200dp"
android:minHeight="50dp"
android:minHeight="40dp"
android:updatePeriodMillis="7200000"
android:previewImage="@drawable/appwidget_preview"
android:initialLayout="@layout/divergence_widget"
Expand Down
13 changes: 0 additions & 13 deletions app/src/test/java/com/vlprojects/divergence/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,4 @@ class ExampleUnitTest {
println("omega range: $OMEGA_RANGE")
println("all range: $ALL_RANGE")
}

// @Test
fun testRandomizer() {
val dw = DivergenceWidget()
var newDiv = 500_000
var iteration = 0
while (newDiv in 0..999999) {
newDiv = dw.generateBalancedRandomDivergence(newDiv)
iteration++
//print("$newDiv, ")
}
println("$newDiv on iteration $iteration")
}
}

0 comments on commit d329c26

Please sign in to comment.