浏览代码

move lib implementation to flavors

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 年之前
父节点
当前提交
9cf911b5c2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      build.gradle

+ 3 - 1
build.gradle

@@ -32,6 +32,7 @@ configurations.all {
 ext {
     supportLibraryVersion = '26.1.0'
     googleLibraryVersion = '11.2.2'
+    androidLibraryVersion = '1.0.39'
 
     travisBuild = System.getenv("TRAVIS") == "true"
 
@@ -195,7 +196,8 @@ dependencies {
     // dependencies for app building
     implementation 'com.android.support:multidex:1.0.2'
 //    implementation project('nextcloud-android-library')
-    implementation 'com.github.nextcloud:android-library:1.0.39'
+    genericImplementation "com.github.nextcloud:android-library:${androidLibraryVersion}"
+    gplayImplementation "com.github.nextcloud:android-library:${androidLibraryVersion}"
     versionDevImplementation 'com.github.nextcloud:android-library:master-SNAPSHOT' // use always latest master
     implementation "com.android.support:support-v4:${supportLibraryVersion}"
     implementation "com.android.support:design:${supportLibraryVersion}"