Skip to content

Commit

Permalink
Keep ComposeSample up-to-date (#41)
Browse files Browse the repository at this point in the history
* Keep ComposeSample up-to-date

* Update

* Remove no necessary repo
  • Loading branch information
joyl1216 authored Sep 16, 2020
1 parent 1912950 commit d159eb3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
1 change: 1 addition & 0 deletions ComposeSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ android {

dependencies {
implementation kotlinDependencies.kotlinStdlib

implementation androidxDependencies.ktxCore
implementation androidxDependencies.appCompat
implementation androidxDependencies.window
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,24 @@ private fun ShowListColumn(models: List<ImageModel>, modifier: Modifier) {
) then Modifier.fillMaxWidth(),
verticalGravity = Alignment.CenterVertically
) {
Image(asset = imageResource(item.image), modifier = Modifier.preferredHeight(100.dp).preferredWidth(150.dp))
Spacer(Modifier.preferredWidth(16.dp))
Image(
asset = imageResource(item.image),
modifier = Modifier.preferredHeight(100.dp).preferredWidth(150.dp)
)
Spacer(
Modifier.preferredWidth(16.dp)
)
Column(modifier = Modifier.fillMaxHeight() then Modifier.padding(16.dp)) {
Text(item.id, modifier = Modifier.fillMaxHeight().wrapContentSize(Alignment.Center), fontSize = 20.sp, fontWeight = FontWeight.Bold)
Text(item.title, modifier = Modifier.fillMaxHeight().wrapContentSize(Alignment.Center))
Text(
text = item.id,
modifier = Modifier.fillMaxHeight().wrapContentSize(Alignment.Center),
fontSize = 20.sp,
fontWeight = FontWeight.Bold
)
Text(
text = item.title,
modifier = Modifier.fillMaxHeight().wrapContentSize(Alignment.Center)
)
}
}
Divider(color = Color.LightGray)
Expand Down
8 changes: 4 additions & 4 deletions ComposeSample/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

ext {
gradlePluginVersion = "4.2.0-alpha08"
kotlinVersion = "1.4.0"
gradlePluginVersion = "4.2.0-alpha10"
kotlinVersion = "1.4.10"
compileSdkVersion = 29
buildToolsVersion = '29.0.2'
targetSdkVersion = compileSdkVersion
Expand All @@ -24,15 +24,15 @@ ext {

//AndroidX versions
appCompatVersion = "1.1.0"
ktxCoreVersion = "1.3.0"
ktxCoreVersion = "1.5.0-alpha02"
constraintLayoutVersion = "1.1.3"
recyclerViewVersion = "1.1.0"
cardViewVersion = "1.0.0"
ktxFragmentVersion = "1.2.4"
viewPager2Version = "1.0.0"
localBroadcastManagerVersion = "1.0.0"
preferenceVersion = "1.1.1"
composeVersion = "1.0.0-alpha01"
composeVersion = "1.0.0-alpha02"
windowVersion = "1.0.0-alpha01"

androidxDependencies = [
Expand Down
12 changes: 3 additions & 9 deletions ComposeSample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
#

#Wed Nov 13 13:53:34 CST 2019
#Wed Sep 09 15:17:47 PDT 2020
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
android.useAndroidX=true
android.enableJetifier=true
distributionUrl=https://services.gradle.org/distributions/gradle-6.6-rc-6-bin.zip

0 comments on commit d159eb3

Please sign in to comment.