From 43409eb86424e07fce1c6ca7b6ece48ca74f51a5 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Tue, 9 Feb 2021 21:21:30 +0100 Subject: [PATCH] Add empty Omnipod Dash module --- app/build.gradle | 1 + omnipod-dash/.gitignore | 1 + omnipod-dash/build.gradle | 38 +++++++++++++++++++ omnipod-dash/consumer-rules.pro | 0 omnipod-dash/proguard-rules.pro | 21 ++++++++++ omnipod-dash/src/main/AndroidManifest.xml | 5 +++ .../omnipod/dash/OmnipodDashPumpPlugin.java | 5 +++ settings.gradle | 3 +- 8 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 omnipod-dash/.gitignore create mode 100644 omnipod-dash/build.gradle create mode 100644 omnipod-dash/consumer-rules.pro create mode 100644 omnipod-dash/proguard-rules.pro create mode 100644 omnipod-dash/src/main/AndroidManifest.xml create mode 100644 omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.java diff --git a/app/build.gradle b/app/build.gradle index c9c7c5fa18..899215e146 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -242,6 +242,7 @@ dependencies { implementation project(':rileylink') implementation project(':medtronic') implementation project(':omnipod-eros') + implementation project(':omnipod-dash') implementation fileTree(include: ['*.jar'], dir: 'libs') diff --git a/omnipod-dash/.gitignore b/omnipod-dash/.gitignore new file mode 100644 index 0000000000..42afabfd2a --- /dev/null +++ b/omnipod-dash/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/omnipod-dash/build.gradle b/omnipod-dash/build.gradle new file mode 100644 index 0000000000..c673b3a28f --- /dev/null +++ b/omnipod-dash/build.gradle @@ -0,0 +1,38 @@ +plugins { + id 'com.android.library' +} + +android { + compileSdkVersion 28 + buildToolsVersion "30.0.2" + + defaultConfig { + minSdkVersion 24 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.3.0' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' +} \ No newline at end of file diff --git a/omnipod-dash/consumer-rules.pro b/omnipod-dash/consumer-rules.pro new file mode 100644 index 0000000000..e69de29bb2 diff --git a/omnipod-dash/proguard-rules.pro b/omnipod-dash/proguard-rules.pro new file mode 100644 index 0000000000..481bb43481 --- /dev/null +++ b/omnipod-dash/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 \ No newline at end of file diff --git a/omnipod-dash/src/main/AndroidManifest.xml b/omnipod-dash/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..e99b57bee2 --- /dev/null +++ b/omnipod-dash/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.java b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.java new file mode 100644 index 0000000000..e18c717b74 --- /dev/null +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.java @@ -0,0 +1,5 @@ +package info.nightscout.androidaps.plugins.pump.omnipod.dash; + +public class OmnipodDashPumpPlugin { + // TODO +} diff --git a/settings.gradle b/settings.gradle index 32af4b9e30..2090bffc04 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,2 @@ -include ':database' -include ':app', ':wear', ':core', ':dana', ':danar', ':danars', ':rileylink', ':medtronic', ':omnipod-eros' +include ':app', ':database', ':wear', ':core', ':dana', ':danar', ':danars', ':rileylink', ':medtronic', ':omnipod-eros', ':omnipod-dash'