Skip to content

Commit f45027b

Browse files
author
mrzhang
committed
add kotlin demo
1 parent acc14e3 commit f45027b

24 files changed

Lines changed: 297 additions & 93 deletions

File tree

UIRouterTable/ShareRouterTable.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ auto generated, do not change !!!!
22

33
HOST : share
44

5-
分享杂志页面
6-
/shareMagazine
7-
author:com.luojilab.componentservice.share.bean.Author
8-
bookName:String
9-
105
分享书籍页面
116
/shareBook
127
author:com.luojilab.componentservice.share.bean.Author

app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.dd.comgradle'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
4+
compileSdkVersion 26
5+
buildToolsVersion "26.0.1"
66
defaultConfig {
77
applicationId "com.luojilab.androidcomponent"
88
minSdkVersion 15
@@ -11,10 +11,6 @@ android {
1111
versionName "1.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313

14-
dataBinding {
15-
enabled = true
16-
}
17-
1814
javaCompileOptions {
1915
annotationProcessorOptions {
2016
arguments = [host: "app"]

basicres/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66

77
defaultConfig {
88
minSdkVersion 15
9-
targetSdkVersion 26
9+
targetSdkVersion 14
1010
versionCode 1
1111
versionName "1.0"
1212

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
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.1.3-2'
45
repositories {
56
jcenter()
67
maven { url "https://jitpack.io" }
8+
maven {
9+
url 'https://maven.google.com/'
10+
name 'Google'
11+
}
712
}
813
dependencies {
914
classpath 'com.android.tools.build:gradle:2.3.3'
1015
classpath 'com.luojilab.ddcomponent:build-gradle:1.0.0'
1116
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
1217
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
18+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1319
}
1420
}
1521

1622
allprojects {
1723
repositories {
1824
jcenter()
1925
maven { url "https://jitpack.io" }
26+
maven {
27+
url 'https://maven.google.com/'
28+
name 'Google'
29+
}
2030
}
2131
}

componentservice/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 26
5-
buildToolsVersion "26.0.0"
5+
buildToolsVersion "26.0.1"
66

77
defaultConfig {
88
minSdkVersion 15

readercomponent/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.dd.comgradle'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
4+
compileSdkVersion 26
5+
buildToolsVersion "26.0.1"
66
defaultConfig {
77
minSdkVersion 15
88
targetSdkVersion 14

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include ':app',
2+
':sharecomponentkotlin',
23
':componentlib',
34
':readercomponent',
45
':sharecomponent',

sharecomponent/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
apply plugin: 'com.dd.comgradle'
22

3+
34
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
5+
compileSdkVersion 26
6+
buildToolsVersion "26.0.1"
67

78
defaultConfig {
89
minSdkVersion 15
910
targetSdkVersion 14
1011
versionCode 1
1112
versionName "1.0"
1213

13-
dataBinding {
14-
enabled = true
15-
}
1614

1715
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1816

@@ -41,9 +39,13 @@ dependencies {
4139
exclude group: 'com.android.support', module: 'support-annotations'
4240
})
4341
testCompile 'junit:junit:4.12'
42+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
4443
}
4544

4645
combuild {
4746
applicationName = 'com.luojilab.share.runalone.application.ShareApplication'
4847
isRegisterCompoAuto = true
4948
}
49+
repositories {
50+
mavenCentral()
51+
}

sharecomponent/src/main/AndroidManifest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
<application
77
android:allowBackup="true"
88
android:label="@string/share_app_name"
9-
tools:replace="android:label"
10-
android:supportsRtl="true">
9+
android:supportsRtl="true"
10+
tools:replace="android:label">
1111

1212
<activity android:name="com.luojilab.share.ShareActivity">
1313

1414
</activity>
1515

16-
<activity android:name="com.luojilab.share.Share2Activity">
17-
18-
</activity>
19-
2016

2117
</application>
2218

sharecomponent/src/main/java/com/luojilab/share/Share2Activity.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)