From 30cc7231a9b660cd2ea8fba0f632f263890ad482 Mon Sep 17 00:00:00 2001 From: Carlos Martinez Date: Mon, 3 Feb 2020 15:22:17 -0300 Subject: [PATCH] create album module --- albumlist/.gitignore | 1 + albumlist/build.gradle | 6 +++++ albumlist/consumer-rules.pro | 0 albumlist/proguard-rules.pro | 21 ++++++++++++++++ .../hako/albumlist/ExampleInstrumentedTest.kt | 24 +++++++++++++++++++ albumlist/src/main/AndroidManifest.xml | 2 ++ albumlist/src/main/res/values/strings.xml | 3 +++ .../com/hako/albumlist/ExampleUnitTest.kt | 17 +++++++++++++ build.gradle | 1 - settings.gradle | 2 +- 10 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 albumlist/.gitignore create mode 100644 albumlist/build.gradle create mode 100644 albumlist/consumer-rules.pro create mode 100644 albumlist/proguard-rules.pro create mode 100644 albumlist/src/androidTest/java/com/hako/albumlist/ExampleInstrumentedTest.kt create mode 100644 albumlist/src/main/AndroidManifest.xml create mode 100644 albumlist/src/main/res/values/strings.xml create mode 100644 albumlist/src/test/java/com/hako/albumlist/ExampleUnitTest.kt diff --git a/albumlist/.gitignore b/albumlist/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/albumlist/.gitignore @@ -0,0 +1 @@ +/build diff --git a/albumlist/build.gradle b/albumlist/build.gradle new file mode 100644 index 0000000..d51b157 --- /dev/null +++ b/albumlist/build.gradle @@ -0,0 +1,6 @@ +apply plugin: 'com.android.library' +apply from: '../core.gradle' + +dependencies { + implementation project(':base') +} \ No newline at end of file diff --git a/albumlist/consumer-rules.pro b/albumlist/consumer-rules.pro new file mode 100644 index 0000000..e69de29 diff --git a/albumlist/proguard-rules.pro b/albumlist/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/albumlist/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/albumlist/src/androidTest/java/com/hako/albumlist/ExampleInstrumentedTest.kt b/albumlist/src/androidTest/java/com/hako/albumlist/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..67e39df --- /dev/null +++ b/albumlist/src/androidTest/java/com/hako/albumlist/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.hako.albumlist + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.hako.albumlist.test", appContext.packageName) + } +} diff --git a/albumlist/src/main/AndroidManifest.xml b/albumlist/src/main/AndroidManifest.xml new file mode 100644 index 0000000..2d613d8 --- /dev/null +++ b/albumlist/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + diff --git a/albumlist/src/main/res/values/strings.xml b/albumlist/src/main/res/values/strings.xml new file mode 100644 index 0000000..8e98088 --- /dev/null +++ b/albumlist/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + albumlist + diff --git a/albumlist/src/test/java/com/hako/albumlist/ExampleUnitTest.kt b/albumlist/src/test/java/com/hako/albumlist/ExampleUnitTest.kt new file mode 100644 index 0000000..b865887 --- /dev/null +++ b/albumlist/src/test/java/com/hako/albumlist/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.hako.albumlist + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} diff --git a/build.gradle b/build.gradle index 155de55..268dbde 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,5 @@ buildscript { apply from: 'versions.gradle' - ext.kotlin_version = deps.kotlin.version repositories { google() diff --git a/settings.gradle b/settings.gradle index 0e9eb61..1b2d3f9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,2 @@ -include ':app', ':base', ':userlist' +include ':app', ':base', ':userlist', ':albumlist' rootProject.name='Friendlists'