diff --git a/Software/Android/RoboRoach/build.gradle b/Software/Android/RoboRoach/build.gradle index 7ff22eb..fff01e2 100644 --- a/Software/Android/RoboRoach/build.gradle +++ b/Software/Android/RoboRoach/build.gradle @@ -1,27 +1,25 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 27 - buildToolsVersion '27.0.3' + compileSdkVersion 29 defaultConfig { applicationId 'com.backyardbrains.roboroach' minSdkVersion 18 - targetSdkVersion 27 - versionCode 5 - versionName "1.2" + targetSdkVersion 29 + versionCode 6 + versionName "1.3" } } ext { - supportLibraryVersion = '27.0.2' easyPermissionsVersion = '1.1.3' } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - // support library - implementation "com.android.support:support-compat:$supportLibraryVersion" + // androidx library + implementation 'androidx.core:core:1.3.2' // permissions implementation "pub.devrel:easypermissions:$easyPermissionsVersion" - implementation 'com.android.support:design:27.0.2' + implementation 'com.google.android.material:material:1.3.0' } diff --git a/Software/Android/RoboRoach/src/main/AndroidManifest.xml b/Software/Android/RoboRoach/src/main/AndroidManifest.xml index 6a9590a..1870a46 100644 --- a/Software/Android/RoboRoach/src/main/AndroidManifest.xml +++ b/Software/Android/RoboRoach/src/main/AndroidManifest.xml @@ -9,6 +9,7 @@ + - - - - - + app:fontFamily="@font/comic_book" /> + + @@ -51,7 +51,7 @@ android:layout_height="306dp" android:layout_gravity="center" android:src="@drawable/roach" - tools:ignore="ContentDescription"/> + tools:ignore="ContentDescription" /> + tools:ignore="ContentDescription" /> - + app:fontFamily="@font/comic_book" /> - + app:fontFamily="@font/comic_book" /> - + tools:text="RoboRoach configuration text" /> + android:baselineAligned="false" + android:orientation="horizontal"> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:text="OK" /> @@ -226,7 +226,7 @@ android:id="@+id/imageView" android:layout_width="match_parent" android:layout_height="150dp" - tools:ignore="ContentDescription"/> + tools:ignore="ContentDescription" /> diff --git a/Software/Android/RoboRoach/src/main/res/layout/roboroach_main.xml b/Software/Android/RoboRoach/src/main/res/layout/roboroach_main.xml index 0af4e45..eb25922 100644 --- a/Software/Android/RoboRoach/src/main/res/layout/roboroach_main.xml +++ b/Software/Android/RoboRoach/src/main/res/layout/roboroach_main.xml @@ -1,35 +1,35 @@ - - - - - + android:textSize="22sp" /> + + @@ -38,10 +38,10 @@ android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" - android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingBottom="@dimen/activity_vertical_margin" tools:context="com.backyardbrains.roboroach.RoboRoachActivity" tools:ignore="MergeRootFrame"> @@ -51,7 +51,7 @@ android:layout_height="306dp" android:layout_gravity="center" android:src="@drawable/roach" - tools:ignore="ContentDescription"/> + tools:ignore="ContentDescription" /> + tools:ignore="ContentDescription" /> - + app:fontFamily="@font/comic_book" /> - + app:fontFamily="@font/comic_book" /> - + tools:text="RoboRoach configuration text" /> @@ -109,13 +109,13 @@ android:layout_gravity="center_vertical" android:layout_margin="10dp" android:text="Gain" - android:textAppearance="?android:attr/textAppearanceSmall"/> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> @@ -183,13 +183,13 @@ android:layout_gravity="center_vertical" android:layout_margin="10dp" android:text="Pulse Width" - android:textAppearance="?android:attr/textAppearanceSmall"/> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:layout_weight="1" /> @@ -203,7 +203,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_weight="1" - android:text="OK"/> + android:text="OK" /> diff --git a/Software/Android/RoboRoach/src/main/res/menu/control.xml b/Software/Android/RoboRoach/src/main/res/menu/control.xml index bc5617c..9895b22 100644 --- a/Software/Android/RoboRoach/src/main/res/menu/control.xml +++ b/Software/Android/RoboRoach/src/main/res/menu/control.xml @@ -1,8 +1,10 @@ - - + + android:title="Settings" + app:showAsAction="ifRoom|withText" /> \ No newline at end of file diff --git a/Software/Android/build.gradle b/Software/Android/build.gradle index 8297732..a3d6873 100644 --- a/Software/Android/build.gradle +++ b/Software/Android/build.gradle @@ -5,7 +5,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:4.1.2' } } diff --git a/Software/Android/gradle.properties b/Software/Android/gradle.properties new file mode 100644 index 0000000..5465fec --- /dev/null +++ b/Software/Android/gradle.properties @@ -0,0 +1,2 @@ +android.enableJetifier=true +android.useAndroidX=true \ No newline at end of file diff --git a/Software/Android/gradle/wrapper/gradle-wrapper.properties b/Software/Android/gradle/wrapper/gradle-wrapper.properties index 6e5f358..67e7948 100644 --- a/Software/Android/gradle/wrapper/gradle-wrapper.properties +++ b/Software/Android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip