Skip to content

Commit 40b343a

Browse files
committed
Remove date offset string, add threeten app id suffix and naming
1 parent f2dd333 commit 40b343a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

app/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ android {
1414
versionName = "1.0"
1515
}
1616
buildTypes {
17+
getByName("debug") {
18+
applicationIdSuffix = ".threeten"
19+
}
1720
getByName("release") {
21+
applicationIdSuffix = ".threeten"
1822
isShrinkResources = true
1923
isMinifyEnabled = true
2024
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")

app/src/main/kotlin/com/g00fy2/androidjavatimedemo/MainActivity.kt

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import kotlinx.coroutines.launch
1414
import org.threeten.bp.ZoneId
1515
import org.threeten.bp.format.DateTimeFormatter
1616
import org.threeten.bp.format.FormatStyle
17+
import java.time.ZoneId
18+
import java.time.format.FormatStyle
1719

1820
class MainActivity : AppCompatActivity() {
1921

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<resources xmlns:tools="http://schemas.android.com/tools">
2-
<string name="app_name">AndroidJavaTimeDemo</string>
2+
<string name="app_name">AndroidJavaTimeDemo ThreeTen</string>
33

44
<string-array name="test_date_strings" tools:ignore="TypographyDashes">
55
<item>2011-12-03T10:15:30+01:00</item>
66
<item>2011-12-03T10:15:30</item>
7-
<item>2011-12-03+01:00</item>
87
<item>2011-12-03</item>
98
</string-array>
109
</resources>

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

-4
This file was deleted.

0 commit comments

Comments
 (0)