diff --git a/app/build.gradle b/app/build.gradle index 2f474c8590..44a1a55ec2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -239,6 +239,7 @@ dependencies { implementation project(':danar') implementation project(':rileylink') implementation project(':medtronic') + implementation project(':omnipod-common') implementation project(':omnipod-eros') implementation project(':omnipod-dash') diff --git a/crowdin.yml b/crowdin.yml index d4bddbb642..7339e43604 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -19,6 +19,8 @@ files: translation: /dana/src/main/res/values-%android_code%/strings.xml - source: /medtronic/src/main/res/values/strings.xml translation: /medtronic/src/main/res/values-%android_code%/strings.xml + - source: /omnipod-common/src/main/res/values/strings.xml + translation: /omnipod-common/src/main/res/values-%android_code%/strings.xml - source: /omnipod-dash/src/main/res/values/strings.xml translation: /omnipod-dash/src/main/res/values-%android_code%/strings.xml - source: /omnipod-eros/src/main/res/values/strings.xml diff --git a/omnipod-common/.gitignore b/omnipod-common/.gitignore new file mode 100644 index 0000000000..42afabfd2a --- /dev/null +++ b/omnipod-common/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/omnipod-common/build.gradle b/omnipod-common/build.gradle new file mode 100644 index 0000000000..85797f8d35 --- /dev/null +++ b/omnipod-common/build.gradle @@ -0,0 +1,50 @@ +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' + +android { + compileSdkVersion 28 + + defaultConfig { + minSdkVersion 24 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + kotlinOptions { + jvmTarget = '1.8' + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + debug { + testCoverageEnabled(project.hasProperty('coverage')) + } + firebaseDisable { + System.setProperty("disableFirebase", "true") + ext.enableCrashlytics = false + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation project(':core') + + annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version" + annotationProcessor "com.google.dagger:dagger-android-processor:$dagger_version" + kapt "com.google.dagger:dagger-android-processor:$dagger_version" + kapt "com.google.dagger:dagger-compiler:$dagger_version" + testImplementation "junit:junit:$junit_version" + androidTestImplementation "androidx.test.ext:junit:$androidx_junit" +} \ No newline at end of file diff --git a/omnipod-common/consumer-rules.pro b/omnipod-common/consumer-rules.pro new file mode 100644 index 0000000000..e69de29bb2 diff --git a/omnipod-common/proguard-rules.pro b/omnipod-common/proguard-rules.pro new file mode 100644 index 0000000000..481bb43481 --- /dev/null +++ b/omnipod-common/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-common/src/main/AndroidManifest.xml b/omnipod-common/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..2ad7b616f1 --- /dev/null +++ b/omnipod-common/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/PlaceHolder.java b/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/PlaceHolder.java new file mode 100644 index 0000000000..4053d8f105 --- /dev/null +++ b/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/PlaceHolder.java @@ -0,0 +1,4 @@ +package info.nightscout.androidaps.plugins.pump.omnipod.common; + +public class PlaceHolder { +} diff --git a/omnipod-dash/build.gradle b/omnipod-dash/build.gradle index 85797f8d35..1a0f73a300 100644 --- a/omnipod-dash/build.gradle +++ b/omnipod-dash/build.gradle @@ -40,6 +40,7 @@ android { dependencies { implementation project(':core') + implementation project(':omnipod-common') annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version" annotationProcessor "com.google.dagger:dagger-android-processor:$dagger_version" diff --git a/omnipod-eros/build.gradle b/omnipod-eros/build.gradle index 5f95aa675c..439c3d26a8 100644 --- a/omnipod-eros/build.gradle +++ b/omnipod-eros/build.gradle @@ -43,6 +43,7 @@ android { dependencies { implementation project(':core') + implementation project(':omnipod-common') implementation project(':rileylink') annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version" diff --git a/settings.gradle b/settings.gradle index 2090bffc04..c1f4057c12 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,2 @@ -include ':app', ':database', ':wear', ':core', ':dana', ':danar', ':danars', ':rileylink', ':medtronic', ':omnipod-eros', ':omnipod-dash' +include ':app', ':database', ':wear', ':core', ':dana', ':danar', ':danars', ':rileylink', ':medtronic', ':omnipod-common', ':omnipod-eros', ':omnipod-dash'