From d04c3f65c2b6434b5d0a2bb4b1816d30730a0740 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 9 Mar 2021 21:45:18 +0100 Subject: [PATCH] New com.jens.automation2 test case --- tests/scanner.TestCase | 2 + .../com.jens.automation2/app/build.gradle | 78 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tests/source-files/com.jens.automation2/app/build.gradle diff --git a/tests/scanner.TestCase b/tests/scanner.TestCase index 3fd52694..03609cf2 100755 --- a/tests/scanner.TestCase +++ b/tests/scanner.TestCase @@ -48,6 +48,7 @@ class ScannerTest(unittest.TestCase): 'org.mozilla.rocket': 3, 'realm': 1, 'se.manyver': 2, + 'com.jens.automation2': 2, } for d in glob.glob(os.path.join(source_files, '*')): build = fdroidserver.metadata.Build() @@ -69,6 +70,7 @@ class ScannerTest(unittest.TestCase): ('source-files/osmandapp/osmand/build.gradle', 'free', 5), ('source-files/eu.siacs.conversations/build.gradle', 'free', 23), ('source-files/org.mozilla.rocket/app/build.gradle', 'focus', 42), + ('source-files/com.jens.automation2/app/build.gradle', 'fdroidFlavor', 8), ] for f, flavor, count in test_files: diff --git a/tests/source-files/com.jens.automation2/app/build.gradle b/tests/source-files/com.jens.automation2/app/build.gradle new file mode 100644 index 00000000..c2ffeda9 --- /dev/null +++ b/tests/source-files/com.jens.automation2/app/build.gradle @@ -0,0 +1,78 @@ +plugins { + id 'com.android.application' +} + +android { + compileSdkVersion 29 + + defaultConfig { + applicationId "com.jens.automation2" + minSdkVersion 16 + compileSdkVersion 29 + buildToolsVersion '29.0.2' + useLibrary 'org.apache.http.legacy' + versionCode 96 + versionName "1.6.21" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + lintOptions { + checkReleaseBuilds false + abortOnError false + } + + flavorDimensions "version" + + productFlavors + { + googlePlayFlavor + { + dimension "version" +// applicationIdSuffix ".googlePlay" + versionNameSuffix "-googlePlay" + targetSdkVersion 29 + } + + fdroidFlavor + { + dimension "version" +// applicationIdSuffix ".fdroid" + versionNameSuffix "-fdroid" + targetSdkVersion 28 + } + + apkFlavor + { + dimension "version" +// applicationIdSuffix ".apk" + versionNameSuffix "-apk" + targetSdkVersion 28 + } + } +} + +dependencies { + googlePlayFlavorImplementation 'com.google.firebase:firebase-appindexing:19.2.0' + googlePlayFlavorImplementation 'com.google.android.gms:play-services-location:17.1.0' + + apkFlavorImplementation 'com.google.firebase:firebase-appindexing:19.2.0' + apkFlavorImplementation 'com.google.android.gms:play-services-location:17.1.0' + + 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