Skip to content

Commit efec42a

Browse files
authoredJul 3, 2020
Merge pull request android#106 from android/develop
Merge develop into master
2 parents 497c898 + ee0c453 commit efec42a

File tree

10 files changed

+25
-282
lines changed

10 files changed

+25
-282
lines changed
 

Diff for: ‎JetNews/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ apply plugin: 'com.android.application'
1818
apply plugin: 'kotlin-android'
1919

2020
android {
21-
compileSdkVersion 29
21+
compileSdkVersion 30
2222
defaultConfig {
2323
applicationId 'com.example.jetnews'
2424
minSdkVersion 21
25-
targetSdkVersion 29
25+
targetSdkVersion 30
2626
versionCode 1
2727
versionName '1.0'
2828
vectorDrawables.useSupportLibrary = true

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/JetnewsApp.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import androidx.ui.core.Alignment
2222
import androidx.ui.core.Modifier
2323
import androidx.ui.foundation.Image
2424
import androidx.ui.foundation.Text
25+
import androidx.ui.graphics.Color
2526
import androidx.ui.graphics.ColorFilter
2627
import androidx.ui.graphics.vector.VectorAsset
2728
import androidx.ui.layout.Arrangement
@@ -162,7 +163,7 @@ private fun DrawerButton(
162163
val backgroundColor = if (isSelected) {
163164
colors.primary.copy(alpha = 0.12f)
164165
} else {
165-
colors.surface
166+
Color.Transparent
166167
}
167168

168169
val surfaceModifier = modifier

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/home/HomeScreen.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ private fun HomeScreenPopularSection(
264264
style = MaterialTheme.typography.subtitle1
265265
)
266266
}
267-
HorizontalScroller(modifier = Modifier.padding(end = 16.dp, bottom = 16.dp)) {
267+
HorizontalScroller(modifier = Modifier.padding(end = 16.dp)) {
268268
posts.forEach { post ->
269-
PostCardPopular(post, navigateTo, Modifier.padding(start = 16.dp))
269+
PostCardPopular(post, navigateTo, Modifier.padding(start = 16.dp, bottom = 16.dp))
270270
}
271271
}
272272
HomeScreenDivider()

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/home/PostCardYourNetwork.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ fun PostCardPopular(
5151
Card(
5252
shape = MaterialTheme.shapes.medium,
5353
modifier = modifier.preferredSize(280.dp, 240.dp)
54-
.clickable(onClick = { navigateTo(Screen.Article(post.id)) })
5554
) {
56-
Column {
55+
Column(modifier = Modifier.clickable(onClick = { navigateTo(Screen.Article(post.id)) })) {
5756
val image = post.image ?: imageResource(R.drawable.placeholder_4_3)
5857
Image(
5958
asset = image,

Diff for: ‎JetNews/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
jcenter()
2424
}
2525
dependencies {
26-
classpath 'com.android.tools.build:gradle:4.2.0-alpha02'
26+
classpath 'com.android.tools.build:gradle:4.2.0-alpha03'
2727
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2828
}
2929
}

Diff for: ‎JetNews/gradle.properties

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
## For more details on how to configure your build environment visit
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
26
# http://www.gradle.org/docs/current/userguide/build_environment.html
3-
#
7+
48
# Specifies the JVM arguments used for the daemon process.
59
# The setting is particularly useful for tweaking memory settings.
6-
# Default value: -Xmx1024m -XX:MaxPermSize=256m
7-
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8-
#
9-
# When configured, Gradle will run in incubating parallel mode.
10-
# This option should only be used with decoupled projects. More details, visit
11-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
12-
# org.gradle.parallel=true
13-
#Thu Apr 02 12:49:33 CEST 2020
14-
android.enableJetifier=true
10+
org.gradle.jvmargs=-Xmx2048m
11+
12+
org.gradle.configureondemand=true
13+
org.gradle.caching=true
14+
org.gradle.parallel=true
15+
16+
# AndroidX package structure to make it clearer which packages are bundled with the
17+
# Android operating system, and which are packaged with your app's APK
18+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1519
android.useAndroidX=true
20+
21+
# Kotlin code style for this project: "official" or "obsolete":
1622
kotlin.code.style=official
17-
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"

Diff for: ‎gradle/wrapper/gradle-wrapper.jar

-53.1 KB
Binary file not shown.

Diff for: ‎gradle/wrapper/gradle-wrapper.properties

-6
This file was deleted.

Diff for: ‎gradlew

-172
This file was deleted.

Diff for: ‎gradlew.bat

-84
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.