From 0dcf2cee4580a0ed50d641c46f1fbe382bb21df7 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Fri, 19 Feb 2021 21:40:36 +0100 Subject: [PATCH] [BOINC] Add new application Signed-off-by: Vitalii Koshura --- metadata/edu.berkeley.boinc.yml | 59 +++++++++++++++++++ metadata/edu.berkeley.boinc/en-US/summary.txt | 1 + metadata/edu.berkeley.boinc/fix-version.patch | 15 +++++ .../edu.berkeley.boinc/remove-xiaomi.patch | 17 ++++++ 4 files changed, 92 insertions(+) create mode 100644 metadata/edu.berkeley.boinc.yml create mode 100644 metadata/edu.berkeley.boinc/en-US/summary.txt create mode 100644 metadata/edu.berkeley.boinc/fix-version.patch create mode 100644 metadata/edu.berkeley.boinc/remove-xiaomi.patch diff --git a/metadata/edu.berkeley.boinc.yml b/metadata/edu.berkeley.boinc.yml new file mode 100644 index 0000000000..47d894c990 --- /dev/null +++ b/metadata/edu.berkeley.boinc.yml @@ -0,0 +1,59 @@ +Categories: + - Science & Education +License: LGPL-3.0-or-later +AuthorName: University of California, Berkeley +AuthorWebSite: https://boinc.berkeley.edu/ +WebSite: https://boinc.berkeley.edu/ +SourceCode: https://github.com/BOINC/boinc +IssueTracker: https://github.com/BOINC/boinc/issues +Translation: https://www.transifex.com/boinc/boinc/dashboard/ + +AutoName: BOINC +Description: |- + Use your phone or tablet to study diseases, predict global warming, or + discover pulsars! BOINC harnesses the unused computing power of your Android + device and runs jobs for scientific research projects. You can choose from + projects in several areas of science, including Yoyo@Home, World Community + Grid, PrimeGrid, Enigma@Home, OProject@Home, theSkyNet POGS, Asteroids@Home, + and Einstein@Home. + + BOINC computes only when your device is plugged in and charged, so it won't + run down your battery. It transfers data over WiFi, so it won't use up your + cell phone plan's data limit. + +RepoType: git +Repo: https://github.com/BOINC/boinc + +Builds: + - versionName: 7.16.16 + versionCode: 71616 + commit: client_release/7.16/7.16.16 + subdir: android/BOINC/ + patch: + - fix-version.patch + - remove-xiaomi.patch + gradle: + - yes + output: app/build/outputs/apk/release/app-release-unsigned.apk + prebuild: + - cd .. + - ./buildAndroidBOINC-CI.sh --silent --ci --arch arm + - ./buildAndroidBOINC-CI.sh --silent --ci --arch arm64 + - ./buildAndroidBOINC-CI.sh --silent --ci --arch x86 + - ./buildAndroidBOINC-CI.sh --silent --ci --arch x86_64 + - cd BOINC + scanignore: + - 3rdParty + - android + - lib + - api + - client + - stage + - samples + - clientscr + - clientgui/res + +AutoUpdateMode: None +UpdateCheckMode: Static +CurrentVersion: 7.16.16 +CurrentVersionCode: 71616 diff --git a/metadata/edu.berkeley.boinc/en-US/summary.txt b/metadata/edu.berkeley.boinc/en-US/summary.txt new file mode 100644 index 0000000000..50c7d372d9 --- /dev/null +++ b/metadata/edu.berkeley.boinc/en-US/summary.txt @@ -0,0 +1 @@ +Use your device to advance scientific research. diff --git a/metadata/edu.berkeley.boinc/fix-version.patch b/metadata/edu.berkeley.boinc/fix-version.patch new file mode 100644 index 0000000000..69ac4b6659 --- /dev/null +++ b/metadata/edu.berkeley.boinc/fix-version.patch @@ -0,0 +1,15 @@ +diff --git a/android/BOINC/app/build.gradle b/android/BOINC/app/build.gradle +index 9325404a2a..b832587738 100644 +--- a/android/BOINC/app/build.gradle ++++ b/android/BOINC/app/build.gradle +@@ -73,8 +73,8 @@ android { + applicationId "edu.berkeley.boinc" + minSdkVersion 16 + targetSdkVersion 28 +- versionCode buildVersionCode().toInteger() +- versionName buildVersionName() ++ versionCode 71616 ++ versionName "7.16.16" + + // Required when setting minSdkVersion to 20 or lower + multiDexEnabled true diff --git a/metadata/edu.berkeley.boinc/remove-xiaomi.patch b/metadata/edu.berkeley.boinc/remove-xiaomi.patch new file mode 100644 index 0000000000..f987cf3b32 --- /dev/null +++ b/metadata/edu.berkeley.boinc/remove-xiaomi.patch @@ -0,0 +1,17 @@ +diff --git a/android/BOINC/app/build.gradle b/android/BOINC/app/build.gradle +index 9325404a2a..032a702d94 100644 +--- a/android/BOINC/app/build.gradle ++++ b/android/BOINC/app/build.gradle +@@ -94,12 +94,6 @@ android { + testCoverageEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.txt' + } +- xiaomi_release { +- initWith release +- } +- xiaomi_debug { +- initWith debug +- } + } + compileOptions { + sourceCompatibility '1.8'