Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6161c91

Browse files
update: the dependencies in the widget sample
1 parent 895bc3c commit 6161c91

File tree

7 files changed

+20
-44
lines changed

7 files changed

+20
-44
lines changed

‎.DS_Store

0 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.

‎WidgetExample/.idea/misc.xml

Lines changed: 1 addition & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎WidgetExample/.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎WidgetExample/app/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ apply plugin: 'kotlin-android'
55
apply plugin: 'kotlin-android-extensions'
66

77
android {
8-
compileSdkVersion 28
8+
compileSdkVersion compileSdkVer
99
defaultConfig {
1010
applicationId "pramonow.com.widgetexample"
11-
minSdkVersion 19
12-
targetSdkVersion 28
11+
minSdkVersion minSdkVer
12+
targetSdkVersion targetSdkVer
1313
versionCode 1
1414
versionName "1.0"
1515
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -25,10 +25,10 @@ android {
2525
dependencies {
2626
implementation fileTree(dir: 'libs', include: ['*.jar'])
2727
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
28-
implementation 'com.android.support:appcompat-v7:28.0.0'
29-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
30-
implementation 'com.android.support:design:28.0.0'
31-
testImplementation 'junit:junit:4.12'
32-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
33-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28+
implementation "com.android.support:appcompat-v7:$buildToolsVer"
29+
implementation "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
30+
implementation "com.android.support:design:$supportVer"
31+
testImplementation "junit:junit:$junitVer"
32+
androidTestImplementation "com.android.support.test:runner:$androidTestRunnerVer"
33+
androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoCoreVersion"
3434
}

‎WidgetExample/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
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.10'
4+
apply from: '../dependencies.gradle'
5+
56
repositories {
67
google()
78
jcenter()
89
}
910
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.1.3'
11+
classpath "com.android.tools.build:gradle:$androidPluginVer"
1112
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1213

1314
// NOTE: Do not place your application dependencies here; they belong
@@ -22,6 +23,10 @@ allprojects {
2223
}
2324
}
2425

26+
subprojects {
27+
apply from: '../../dependencies.gradle'
28+
}
29+
2530
task clean(type: Delete) {
2631
delete rootProject.buildDir
27-
}
32+
}

‎WidgetExample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /