diff --git a/build.gradle b/build.gradle index 33b908c..d1dc598 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.2' + classpath 'com.android.tools.build:gradle:2.1.3' } } diff --git a/examplesync/.gitignore b/examplesync/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/examplesync/.gitignore @@ -0,0 +1 @@ +/build diff --git a/examplesync/build.gradle b/examplesync/build.gradle new file mode 100644 index 0000000..09b45de --- /dev/null +++ b/examplesync/build.gradle @@ -0,0 +1,29 @@ +apply plugin: 'com.android.application' + +android { + + compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) + buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION + + defaultConfig { + applicationId "com.felhr.serialportexamplesync" + minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) + targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) + versionName project.VERSION_NAME + versionCode Integer.parseInt(project.VERSION_CODE) + } + + compileOptions { + encoding "UTF-8" + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } +} + +dependencies { + compile 'com.android.support:support-v4:23.1.1' + compile 'com.android.support:appcompat-v7:23.1.1' + compile 'com.android.support:design:23.1.1' + + compile project(':usbserial') +} diff --git a/examplesync/proguard-rules.pro b/examplesync/proguard-rules.pro new file mode 100644 index 0000000..45d01f2 --- /dev/null +++ b/examplesync/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Applications/AndroidSDK/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/examplesync/src/androidTest/java/felhr/com/examplesync/ApplicationTest.java b/examplesync/src/androidTest/java/felhr/com/examplesync/ApplicationTest.java new file mode 100644 index 0000000..a262943 --- /dev/null +++ b/examplesync/src/androidTest/java/felhr/com/examplesync/ApplicationTest.java @@ -0,0 +1,13 @@ +package felhr.com.examplesync; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/examplesync/src/main/AndroidManifest.xml b/examplesync/src/main/AndroidManifest.xml new file mode 100644 index 0000000..b174e89 --- /dev/null +++ b/examplesync/src/main/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + diff --git a/examplesync/src/main/res/mipmap-hdpi/ic_launcher.png b/examplesync/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..cde69bc Binary files /dev/null and b/examplesync/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/examplesync/src/main/res/mipmap-mdpi/ic_launcher.png b/examplesync/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c133a0c Binary files /dev/null and b/examplesync/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/examplesync/src/main/res/mipmap-xhdpi/ic_launcher.png b/examplesync/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..bfa42f0 Binary files /dev/null and b/examplesync/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/examplesync/src/main/res/mipmap-xxhdpi/ic_launcher.png b/examplesync/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..324e72c Binary files /dev/null and b/examplesync/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/examplesync/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/examplesync/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..aee44e1 Binary files /dev/null and b/examplesync/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/examplesync/src/main/res/values/colors.xml b/examplesync/src/main/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/examplesync/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #3F51B5 + #303F9F + #FF4081 + diff --git a/examplesync/src/main/res/values/strings.xml b/examplesync/src/main/res/values/strings.xml new file mode 100644 index 0000000..5902e20 --- /dev/null +++ b/examplesync/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + ExampleSync + diff --git a/examplesync/src/main/res/values/styles.xml b/examplesync/src/main/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/examplesync/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/examplesync/src/test/java/felhr/com/examplesync/ExampleUnitTest.java b/examplesync/src/test/java/felhr/com/examplesync/ExampleUnitTest.java new file mode 100644 index 0000000..e7a48b6 --- /dev/null +++ b/examplesync/src/test/java/felhr/com/examplesync/ExampleUnitTest.java @@ -0,0 +1,15 @@ +package felhr.com.examplesync; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * To work on unit tests, switch the Test Artifact in the Build Variants view. + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index fe2d095..4d593ba 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Jul 18 23:57:52 CEST 2016 +#Fri Sep 16 18:22:23 CEST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip diff --git a/settings.gradle b/settings.gradle index 3613446..4e2f0be 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':usbserial', ':example' \ No newline at end of file +include ':usbserial', ':example', ':examplesync' \ No newline at end of file