-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added announcement vibration for watch - Removed auto-disable watch feature - Support for Android api 29 (Q) - Migration to AndroidX - Code cleanup and bug fixes
- Loading branch information
Showing
32 changed files
with
592 additions
and
1,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ if (keystoreProperties.isEmpty()) { | |
|
||
android { | ||
compileSdkVersion 29 | ||
buildToolsVersion "29.0.2" | ||
buildToolsVersion "29.0.3" | ||
|
||
compileOptions { | ||
sourceCompatibility 1.8 | ||
|
@@ -33,8 +33,11 @@ android { | |
minSdkVersion 16 | ||
targetSdkVersion 29 | ||
resConfigs "en", "de" | ||
versionCode 7 | ||
versionName '2.0.2' | ||
versionCode 8 | ||
versionName '2.1.0' | ||
// project website | ||
buildConfigField 'String', 'CONTACT_EMAIL_ADDRESS', '"[email protected]"' | ||
buildConfigField 'String', 'PROJECT_WEBSITE', '"https://github.com/scheibler/TactileClock"' | ||
// set .apk name | ||
setProperty("archivesBaseName", "${archivesBaseName}-$versionName") | ||
} | ||
|
@@ -56,14 +59,23 @@ android { | |
} | ||
|
||
lintOptions { | ||
disable "StaticFieldLeak", "InflateParams", "GoogleAppIndexingWarning", | ||
"ButtonStyle", "UseSparseArrays", "UseCompoundDrawables", | ||
"DefaultLocale", "AllowBackup", "IconLauncherShape", "Autofill", "GradleCompatible" | ||
disable "GoogleAppIndexingWarning", "ButtonStyle", "UseSparseArrays", | ||
"UseCompoundDrawables", "AllowBackup", "IconLauncherShape", "Autofill" | ||
} | ||
} | ||
|
||
dependencies { | ||
//implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation 'com.android.support:design:28.0.0' | ||
// androidX | ||
implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation 'androidx.core:core:1.3.0' | ||
implementation 'androidx.drawerlayout:drawerlayout:1.0.0' | ||
implementation 'androidx.fragment:fragment:1.2.4' | ||
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' | ||
implementation 'androidx.viewpager:viewpager:1.0.0' | ||
// material design | ||
implementation 'com.google.android.material:material:1.1.0' | ||
// guava | ||
implementation 'com.google.guava:guava:28.2-android' | ||
// logging | ||
implementation 'com.jakewharton.timber:timber:4.7.1' | ||
} |
35 changes: 35 additions & 0 deletions
35
app/src/main/java/de/eric_scheibler/tactileclock/data/HourFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package de.eric_scheibler.tactileclock.data; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
||
public enum HourFormat { | ||
TWELVE_HOURS("12hours"), | ||
TWENTYFOUR_HOURS("24hours"); | ||
|
||
private final String code; | ||
private static final Map<String,HourFormat> valuesByCode; | ||
|
||
static { | ||
valuesByCode = new HashMap<String,HourFormat>(); | ||
for(HourFormat hourFormat : HourFormat.values()) { | ||
valuesByCode.put(hourFormat.code, hourFormat); | ||
} | ||
} | ||
|
||
public static HourFormat lookupByCode(String code) { | ||
if (code == null || valuesByCode.get(code) == null) | ||
return TWENTYFOUR_HOURS; // default value | ||
return valuesByCode.get(code); | ||
} | ||
|
||
private HourFormat(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
app/src/main/java/de/eric_scheibler/tactileclock/data/TimeComponentOrder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package de.eric_scheibler.tactileclock.data; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
||
public enum TimeComponentOrder { | ||
HOURS_MINUTES("hoursMinutes"), | ||
MINUTES_HOURS("minutesHours"); | ||
|
||
private final String code; | ||
private static final Map<String,TimeComponentOrder> valuesByCode; | ||
|
||
static { | ||
valuesByCode = new HashMap<String,TimeComponentOrder>(); | ||
for(TimeComponentOrder timeComponentOrder : TimeComponentOrder.values()) { | ||
valuesByCode.put(timeComponentOrder.code, timeComponentOrder); | ||
} | ||
} | ||
|
||
public static TimeComponentOrder lookupByCode(String code) { | ||
if (code == null || valuesByCode.get(code) == null) | ||
return HOURS_MINUTES; // default value | ||
return valuesByCode.get(code); | ||
} | ||
|
||
private TimeComponentOrder(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
...c/main/java/de/eric_scheibler/tactileclock/listener/SelectIntegerDialogCloseListener.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
app/src/main/java/de/eric_scheibler/tactileclock/listener/SelectTimeDialogCloseListener.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.