diff --git a/app/build.gradle b/app/build.gradle index 6b3eaeb..b430946 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,7 +28,7 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' - compile project(path: ':canvaslibrary') + implementation project(path: ':canvaslibrary') } diff --git a/build.gradle b/build.gradle index 020eae2..bbc6cd0 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,9 @@ buildscript { repositories { google() jcenter() + mavenCentral() } + dependencies { classpath 'com.android.tools.build:gradle:3.0.0' diff --git a/canvaslibrary/.gitignore b/canvaslibrary/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/canvaslibrary/.gitignore @@ -0,0 +1 @@ +/build diff --git a/canvaslibrary/build.gradle b/canvaslibrary/build.gradle new file mode 100644 index 0000000..6b32bb7 --- /dev/null +++ b/canvaslibrary/build.gradle @@ -0,0 +1,34 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 26 + + + + defaultConfig { + minSdkVersion 19 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + + implementation 'com.android.support:appcompat-v7:26.1.0' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.1' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' +} diff --git a/canvaslibrary/proguard-rules.pro b/canvaslibrary/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/canvaslibrary/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/canvaslibrary/src/androidTest/java/com/ajithvgiri/canvaslibrary/ExampleInstrumentedTest.java b/canvaslibrary/src/androidTest/java/com/ajithvgiri/canvaslibrary/ExampleInstrumentedTest.java new file mode 100644 index 0000000..65c556d --- /dev/null +++ b/canvaslibrary/src/androidTest/java/com/ajithvgiri/canvaslibrary/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.ajithvgiri.canvaslibrary; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.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() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.ajithvgiri.canvaslibrary.test", appContext.getPackageName()); + } +} diff --git a/canvaslibrary/src/main/AndroidManifest.xml b/canvaslibrary/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c45515d --- /dev/null +++ b/canvaslibrary/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + diff --git a/canvaslibrary/src/main/res/values/strings.xml b/canvaslibrary/src/main/res/values/strings.xml new file mode 100644 index 0000000..4cd0cd0 --- /dev/null +++ b/canvaslibrary/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + CanvasLibrary + diff --git a/canvaslibrary/src/test/java/com/ajithvgiri/canvaslibrary/ExampleUnitTest.java b/canvaslibrary/src/test/java/com/ajithvgiri/canvaslibrary/ExampleUnitTest.java new file mode 100644 index 0000000..6e85df6 --- /dev/null +++ b/canvaslibrary/src/test/java/com/ajithvgiri/canvaslibrary/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.ajithvgiri.canvaslibrary; + +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() throws Exception { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/instapk.properties b/instapk.properties index 6e94528..acdabfe 100644 --- a/instapk.properties +++ b/instapk.properties @@ -1,2 +1,2 @@ -#Tue Oct 31 16:12:21 IST 2017 +#Fri Nov 03 13:13:52 IST 2017 project.token=xxxxxx