Skip to content

Commit 2e44bb3

Browse files
committed
AppCompatSupport: Create
Signed-off-by: Fung <fython@163.com>
1 parent 046287e commit 2e44bb3

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

demo/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies {
3232
compile 'com.android.support:design:25.3.1'
3333

3434
compile project(':kotlinyan-common')
35+
compile project(':kotlinyan-appcompat-support')
3536
compile project(':kotlinyan-picasso-support')
3637
compile project(':kotlinyan-glide-support')
3738
compile project(':kotlinyan-recyclerview-support')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'kotlin-android'
3+
4+
android {
5+
compileSdkVersion TARGET_SDK_VERSION.toInteger()
6+
buildToolsVersion BUILD_TOOLS_VERSION
7+
8+
defaultConfig {
9+
minSdkVersion MIN_SDK_VERSION.toInteger()
10+
targetSdkVersion TARGET_SDK_VERSION.toInteger()
11+
versionCode VERSION_CODE.toInteger()
12+
versionName VERSION_NAME
13+
}
14+
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
22+
sourceSets {
23+
main.java.srcDirs += 'src/main/kotlin'
24+
}
25+
}
26+
27+
dependencies {
28+
compile fileTree(dir: 'libs', include: ['*.jar'])
29+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
30+
compile 'com.android.support:appcompat-v7:25.3.1'
31+
}
32+
repositories {
33+
mavenCentral()
34+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in G:\adt\sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest package="moe.feng.kotlinyan.common.appcompat">
2+
3+
</manifest>

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include ':demo',
22
':kotlinyan-common',
3+
':kotlinyan-appcompat-support',
34
':kotlinyan-picasso-support',
45
':kotlinyan-glide-support',
56
':kotlinyan-recyclerview-support'

0 commit comments

Comments
 (0)