From 8f28dc0abbf7790a54c7cce994fe4097aae5d2c1 Mon Sep 17 00:00:00 2001 From: Maurice Edwards Date: Wed, 8 May 2019 11:06:28 -0400 Subject: [PATCH] Created project --- .idea/codeStyles/Project.xml | 10 +++ .idea/codeStyles/codeStyleConfig.xml | 5 ++ .idea/markdown-navigator.xml | 86 +++++++++++++++++++ lib/.gitignore | 1 + lib/build.gradle | 33 +++++++ lib/proguard-rules.pro | 21 +++++ .../lib/ExampleInstrumentedTest.java | 26 ++++++ lib/src/main/AndroidManifest.xml | 2 + lib/src/main/res/values/strings.xml | 3 + .../me/lazylayout/lib/ExampleUnitTest.java | 17 ++++ 10 files changed, 204 insertions(+) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/markdown-navigator.xml create mode 100644 lib/.gitignore create mode 100644 lib/build.gradle create mode 100644 lib/proguard-rules.pro create mode 100644 lib/src/androidTest/java/mauricee/me/lazylayout/lib/ExampleInstrumentedTest.java create mode 100644 lib/src/main/AndroidManifest.xml create mode 100644 lib/src/main/res/values/strings.xml create mode 100644 lib/src/test/java/mauricee/me/lazylayout/lib/ExampleUnitTest.java diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..1bec35e --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/markdown-navigator.xml b/.idea/markdown-navigator.xml new file mode 100644 index 0000000..4194dd2 --- /dev/null +++ b/.idea/markdown-navigator.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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..a5929aa --- /dev/null +++ b/lib/build.gradle @@ -0,0 +1,33 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 28 + + + defaultConfig { + minSdkVersion 19 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + + implementation 'androidx.appcompat:appcompat:1.0.2' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test:runner:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' +} diff --git a/lib/proguard-rules.pro b/lib/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/lib/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# 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 *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/lib/src/androidTest/java/mauricee/me/lazylayout/lib/ExampleInstrumentedTest.java b/lib/src/androidTest/java/mauricee/me/lazylayout/lib/ExampleInstrumentedTest.java new file mode 100644 index 0000000..aa56c96 --- /dev/null +++ b/lib/src/androidTest/java/mauricee/me/lazylayout/lib/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package mauricee.me.lazylayout.lib; + +import android.content.Context; +import androidx.test.InstrumentationRegistry; +import androidx.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("mauricee.me.lazylayout.lib.test", appContext.getPackageName()); + } +} diff --git a/lib/src/main/AndroidManifest.xml b/lib/src/main/AndroidManifest.xml new file mode 100644 index 0000000..81abb5f --- /dev/null +++ b/lib/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + diff --git a/lib/src/main/res/values/strings.xml b/lib/src/main/res/values/strings.xml new file mode 100644 index 0000000..d8b1ac9 --- /dev/null +++ b/lib/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + lib + diff --git a/lib/src/test/java/mauricee/me/lazylayout/lib/ExampleUnitTest.java b/lib/src/test/java/mauricee/me/lazylayout/lib/ExampleUnitTest.java new file mode 100644 index 0000000..9a54a07 --- /dev/null +++ b/lib/src/test/java/mauricee/me/lazylayout/lib/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package mauricee.me.lazylayout.lib; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file