Skip to content

Commit

Permalink
Added A4988 module
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kornacki committed Feb 8, 2017
1 parent 0951863 commit e958948
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions a4988/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
61 changes: 61 additions & 0 deletions a4988/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'groovyx.android'
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')

buildscript {

dependencies {
classpath rootProject.ext.kotlinPlugin
}
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
minSdkVersion 24
targetSdkVersion 25
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

sourceSets {
test.java.srcDirs += 'src/test/groovy'
}

testOptions {
unitTests.returnDefaultValues = true
}

androidGroovy {
options {
// We don't use groovy in production code so we'd like to disable Groovy processing.
configure { GroovyCompile task ->
task.enabled = task.name.contains("Test")
project.logger.info("Checking whether groovy should be enabled for $task.name: ->> $task.enabled\n")
}
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile rootProject.ext.libs.appcompat
compile rootProject.ext.libs.kotlin
provided rootProject.ext.libs.android_things
testCompile rootProject.ext.libs.junit
testCompile rootProject.ext.libs.groovy
testCompile rootProject.ext.libs.spock
testCompile rootProject.ext.libs.mockito
}
5 changes: 5 additions & 0 deletions a4988/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
POM_ARTIFACT_ID=a4988
POM_NAME=A4988
POM_PACKAGING=aar
VERSION_NAME=0.0.1-SNAPSHOT
POM_DESCRIPTION=Android Things user driver for stepper motor A4988 driver
12 changes: 12 additions & 0 deletions a4988/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.polidea.androidthings.driver.a4988">

<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"
>

</application>

</manifest>
3 changes: 3 additions & 0 deletions a4988/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">A4988</string>
</resources>
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ kapt {
}

dependencies {

compile project(':numpad')
compile project(':uln2003')
compile project(':a4988')
compile rootProject.ext.libs.kotlin
compile rootProject.ext.libs.appcompat
provided rootProject.ext.libs.android_things
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':uln2003', ':numpad'
include ':app', ':uln2003', ':numpad', ':a4988'

0 comments on commit e958948

Please sign in to comment.