浏览代码

Merge pull request #4885 from nextcloud/disable_android_backup_qa

Disable android backup on the QA app
Andy Scherzinger 5 年之前
父节点
当前提交
99d9a6923e
共有 2 个文件被更改,包括 32 次插入1 次删除
  1. 6 1
      build.gradle
  2. 26 0
      src/qa/AndroidManifest.xml

+ 6 - 1
build.gradle

@@ -105,7 +105,12 @@ android {
         abortOnError false
         abortOnError false
         htmlReport true
         htmlReport true
         htmlOutput file("$project.buildDir/reports/lint/lint.html")
         htmlOutput file("$project.buildDir/reports/lint/lint.html")
-        disable 'MissingTranslation', 'GradleDependency', 'VectorPath', 'IconMissingDensityFolder', 'IconDensities'
+        disable 'MissingTranslation',
+            'GradleDependency',
+            'VectorPath',
+            'IconMissingDensityFolder',
+            'IconDensities',
+            'GoogleAppIndexingWarning'
     }
     }
 
 
     dexOptions {
     dexOptions {

+ 26 - 0
src/qa/AndroidManifest.xml

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Nextcloud Android client application
+
+ Copyright (C) 2019 Nextcloud GmbH
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools">
+
+    <application
+        android:allowBackup="false"
+        tools:replace="android:allowBackup" />
+</manifest>