Skip to content

Commit ba633d4

Browse files
updated deps and added readme
1 parent d404cfa commit ba633d4

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

MotionLayout/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MotionLayout/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Motion Layout
2+
This is a demo application which demonstrates use of motion layout to create swipeable cards like tinder.
3+
4+
<b>Screenshots:</b><br><br>
5+
<img src="motion.gif"/>

MotionLayout/app/build.gradle

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ apply plugin: 'kotlin-android'
55
apply plugin: 'kotlin-android-extensions'
66

77
android {
8-
compileSdkVersion 29
8+
compileSdkVersion compileSdkVer
99
buildToolsVersion "29.0.2"
1010
defaultConfig {
1111
applicationId "com.developers.motionlayout"
12-
minSdkVersion 15
13-
targetSdkVersion 29
12+
minSdkVersion minSdkVer
13+
targetSdkVersion targetSdkVer
1414
versionCode 1
1515
versionName "1.0"
1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -26,10 +26,10 @@ android {
2626
dependencies {
2727
implementation fileTree(dir: 'libs', include: ['*.jar'])
2828
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
29-
implementation 'androidx.appcompat:appcompat:1.1.0'
30-
implementation 'androidx.core:core-ktx:1.1.0'
29+
implementation "androidx.appcompat:appcompat:$buildToolsVer"
30+
implementation "androidx.core:core-ktx:$coreKtxVersion"
3131
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
32-
testImplementation 'junit:junit:4.12'
33-
androidTestImplementation 'androidx.test:runner:1.2.0'
34-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
32+
testImplementation "junit:junit:$junitVer"
33+
androidTestImplementation "androidx.test:runner:$androidTestRunnerVer"
34+
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVersion"
3535
}

MotionLayout/build.gradle

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.61'
4+
apply from: '../dependencies.gradle'
5+
56
repositories {
67
google()
78
jcenter()
89

910
}
1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.5.0'
12+
classpath "com.android.tools.build:gradle:$androidPluginVer"
1213
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1314
// NOTE: Do not place your application dependencies here; they belong
1415
// in the individual module build.gradle files
@@ -23,6 +24,10 @@ allprojects {
2324
}
2425
}
2526

27+
subprojects {
28+
apply from: '../../dependencies.gradle'
29+
}
30+
2631
task clean(type: Delete) {
2732
delete rootProject.buildDir
2833
}

MotionLayout/motion.gif

296 KB
Loading

0 commit comments

Comments
 (0)