From dd3cda952d4fae785f1564849fd0f33b668b91ae Mon Sep 17 00:00:00 2001 From: androidtim Date: Wed, 1 Mar 2017 13:55:31 +0300 Subject: [PATCH] added library module for testing "includeJar" --- app/build.gradle | 3 + lib/.gitignore | 1 + lib/build.gradle | 17 +++ lib/lib.iml | 106 ++++++++++++++++++ lib/src/main/AndroidManifest.xml | 1 + .../main/java/com/archinamon/example/Lib.java | 11 ++ settings.gradle | 2 +- 7 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 lib/.gitignore create mode 100644 lib/build.gradle create mode 100644 lib/lib.iml create mode 100644 lib/src/main/AndroidManifest.xml create mode 100644 lib/src/main/java/com/archinamon/example/Lib.java diff --git a/app/build.gradle b/app/build.gradle index 285539c..105b774 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,6 +25,7 @@ apply plugin: 'kotlin-android-extensions' aspectj { debugInfo !isTCBuild() + includeJar 'lib' } retrolambda { @@ -101,6 +102,8 @@ dependencies { apt 'com.google.dagger:dagger-compiler:2.0' provided 'org.glassfish:javax.annotation:10.0-b28' + + compile project(':lib') } def isTCBuild() { diff --git a/lib/.gitignore b/lib/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/lib/.gitignore @@ -0,0 +1 @@ +/build diff --git a/lib/build.gradle b/lib/build.gradle new file mode 100644 index 0000000..d4b6349 --- /dev/null +++ b/lib/build.gradle @@ -0,0 +1,17 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.2" + + defaultConfig { + minSdkVersion 15 + targetSdkVersion 25 + versionCode 1 + versionName "1.0" + + } +} + +dependencies { +} diff --git a/lib/lib.iml b/lib/lib.iml new file mode 100644 index 0000000..abd98c3 --- /dev/null +++ b/lib/lib.iml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/src/main/AndroidManifest.xml b/lib/src/main/AndroidManifest.xml new file mode 100644 index 0000000..6870a70 --- /dev/null +++ b/lib/src/main/AndroidManifest.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/src/main/java/com/archinamon/example/Lib.java b/lib/src/main/java/com/archinamon/example/Lib.java new file mode 100644 index 0000000..6f5c635 --- /dev/null +++ b/lib/src/main/java/com/archinamon/example/Lib.java @@ -0,0 +1,11 @@ +package com.archinamon.example; + +import android.util.Log; + +public class Lib { + + public void sayHello() { + Log.i("Lib", "Hello from Lib"); + } + +} diff --git a/settings.gradle b/settings.gradle index e7b4def..3cbe249 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app' +include ':app', ':lib'