Skip to content

Commit 296702a

Browse files
committed
Fix a11y issues. Added signing keys.
1 parent 7f394f6 commit 296702a

6 files changed

Lines changed: 55 additions & 5 deletions

File tree

.idea/deploymentTargetDropDown.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@ android {
77
namespace = "dev.randombits.intervaltimer"
88
compileSdk = 33
99

10+
signingConfigs {
11+
create("release") {
12+
if (findProperty("PLAY_STORE_KEY") != null) {
13+
storeFile = file(findProperty("PLAY_STORE_KEY") as String)
14+
storePassword = findProperty("PLAY_STORE_PASSWORD") as String?
15+
keyAlias = findProperty("PLAY_STORE_KEY_ALIAS") as String?
16+
keyPassword = findProperty("PLAY_STORE_KEY_PASSWORD") as String?
17+
}
18+
}
19+
}
20+
1021
defaultConfig {
1122
applicationId = "dev.randombits.intervaltimer"
1223
minSdk = 24
1324
targetSdk = 33
14-
versionCode = 1
15-
versionName = "1.0"
25+
versionCode = 3
26+
versionName = "1.0.2"
1627

1728
vectorDrawables {
1829
useSupportLibrary = true
@@ -21,8 +32,11 @@ android {
2132

2233
buildTypes {
2334
release {
24-
isMinifyEnabled = false
35+
isMinifyEnabled = true
2536
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
37+
if (findProperty("PLAY_STORE_KEY") != null) {
38+
signingConfig = signingConfigs.getByName("release")
39+
}
2640
}
2741
}
2842
compileOptions {

app/src/main/res/layout/fragment_settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
android:layout_width="wrap_content"
2424
android:layout_height="wrap_content"
2525
android:src="@drawable/minus"
26+
android:contentDescription="@string/decrease_active_time"
2627
android:scaleType="fitCenter" android:padding="16dp"/>
2728

2829
<EditText
@@ -40,6 +41,7 @@
4041
android:layout_width="wrap_content"
4142
android:layout_height="wrap_content"
4243
android:src="@drawable/add_24"
44+
android:contentDescription="@string/increase_active_time"
4345
android:scaleType="fitCenter" android:padding="16dp"/>
4446
</LinearLayout>
4547
<TextView
@@ -58,6 +60,7 @@
5860
android:layout_width="wrap_content"
5961
android:layout_height="wrap_content"
6062
android:src="@drawable/minus"
63+
android:contentDescription="@string/decrease_rest_time"
6164
android:scaleType="fitCenter" android:padding="16dp"/>
6265

6366
<EditText
@@ -74,6 +77,7 @@
7477
android:layout_width="wrap_content"
7578
android:layout_height="wrap_content"
7679
android:src="@drawable/add_24"
80+
android:contentDescription="@string/increase_rest_time"
7781
android:scaleType="fitCenter" android:padding="16dp"/>
7882
</LinearLayout>
7983

@@ -83,5 +87,6 @@
8387
android:layout_width="100dp"
8488
android:layout_height="100dp"
8589
android:layout_gravity="center"
90+
android:contentDescription="@string/btn_start"
8691
android:background="@drawable/play_circle_120"/>
8792
</LinearLayout>

app/src/main/res/layout/fragment_timer.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
android:layout_width="100dp"
4949
android:layout_height="100dp"
5050
android:layout_gravity="center"
51+
android:contentDescription="@string/btn_pause"
5152
android:background="@drawable/pause_circle_120"/>
5253

5354
<Button
@@ -56,6 +57,7 @@
5657
android:layout_width="100dp"
5758
android:layout_height="100dp"
5859
android:layout_gravity="center"
60+
android:contentDescription="@string/btn_resume"
5961
android:background="@drawable/play_circle_120"/>
6062

6163
<Button
@@ -64,6 +66,7 @@
6466
android:layout_width="100dp"
6567
android:layout_height="100dp"
6668
android:layout_gravity="center"
69+
android:contentDescription="@string/btn_stop"
6770
android:background="@drawable/stop_circle_120"/>
6871
</LinearLayout>
6972

app/src/main/res/values/strings.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
<string name="app_title">Interval Timer</string>
44
<string name="activeTime_label">Active</string>
55
<string name="restTime_label">Rest</string>
6-
<string name="btn_start">Prepare</string>
6+
<string name="btn_settings">Settings</string>
7+
<string name="btn_start">Start</string>
78
<string name="btn_pause">Pause</string>
89
<string name="btn_stop">Stop</string>
910
<string name="btn_resume">Resume</string>
1011
<string name="setCount">%1$d</string>
1112
<string name="set">SET</string>
13+
<string name="decrease_active_time">Decrease Active Time</string>
14+
<string name="increase_active_time">Increase Active Time</string>
15+
<string name="decrease_rest_time">Decrease Rest Time</string>
16+
<string name="increase_rest_time">Increase Rest Time</string>
1217
</resources>

0 commit comments

Comments
 (0)