diff --git a/advancedrecyclerview/.gitignore b/advancedrecyclerview/.gitignore
deleted file mode 100644
index 796b96d..0000000
--- a/advancedrecyclerview/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/advancedrecyclerview/build.gradle b/advancedrecyclerview/build.gradle
deleted file mode 100644
index 089d19c..0000000
--- a/advancedrecyclerview/build.gradle
+++ /dev/null
@@ -1,9 +0,0 @@
-apply from: '../library.gradle'
-apply plugin: 'kotlin-android'
-
-dependencies {
- compile project(':core')
- compile project(':section')
- compile project(':pagination')
- compile project(':gesture')
-}
\ No newline at end of file
diff --git a/advancedrecyclerview/proguard-rules.pro b/advancedrecyclerview/proguard-rules.pro
deleted file mode 100644
index 85ff095..0000000
--- a/advancedrecyclerview/proguard-rules.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/stephenvinouze/Library/Android/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/advancedrecyclerview/src/main/AndroidManifest.xml b/advancedrecyclerview/src/main/AndroidManifest.xml
deleted file mode 100644
index a0e7486..0000000
--- a/advancedrecyclerview/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/advancedrecyclerview/src/main/res/values/strings.xml b/advancedrecyclerview/src/main/res/values/strings.xml
deleted file mode 100644
index 6329270..0000000
--- a/advancedrecyclerview/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- AdvancedRecyclerView
-
diff --git a/core/src/main/res/layout/section_view.xml b/core/src/main/res/layout/section_view.xml
deleted file mode 100755
index e551584..0000000
--- a/core/src/main/res/layout/section_view.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
index a697a29..8e2c092 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -1,3 +1,3 @@
- AdvancedRecyclerView-Common
+ AdvancedRecyclerView-Core
diff --git a/library.gradle b/library.gradle
index 0c5c041..fd1ac86 100644
--- a/library.gradle
+++ b/library.gradle
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
+apply plugin: 'com.github.dcendents.android-maven'
+
+group = 'com.github.stephenvinouze'
android {
compileSdkVersion Integer.parseInt(ANDROID_BUILD_SDK_VERSION)
@@ -22,3 +25,23 @@ android {
androidTest.java.srcDirs += 'src/androidTest/kotlin'
}
}
+
+task sourcesJar(type: Jar) {
+ from android.sourceSets.main.java.srcDirs
+ classifier = 'sources'
+}
+
+task javadoc(type: Javadoc) {
+ source = android.sourceSets.main.java.srcDirs
+ classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+}
+
+task javadocJar(type: Jar, dependsOn: javadoc) {
+ classifier = 'javadoc'
+ from javadoc.destinationDir
+}
+
+artifacts {
+ //archives javadocJar
+ archives sourcesJar
+}
diff --git a/sample/build.gradle b/sample/build.gradle
index 5f53c75..34a3a1f 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -10,7 +10,7 @@ android {
defaultConfig {
applicationId "com.github.stephenvinouze.advancedrecyclerviewsample"
- minSdkVersion 7
+ minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
@@ -25,11 +25,17 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
+ lintOptions {
+ abortOnError false
+ }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
- compile project(':advancedrecyclerview')
+ compile project(':core')
+ compile project(':section')
+ compile project(':pagination')
+ compile project(':gesture')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
diff --git a/settings.gradle b/settings.gradle
index 3a426d2..81ed6d8 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':sample', ':advancedrecyclerview', ':core', ':section', ':pagination', ':gesture'
+include ':sample', ':core', ':section', ':pagination', ':gesture'