| author | Da Risk <da_risk@geekorum.com> |
| Mon, 15 Sep 2025 13:45:50 -0400 | |
| changeset 96 | b03d6cc16239 |
| parent 75 | 534a19e25217 |
| permissions | -rw-r--r-- |
| 1 | 1 |
/* |
| 10 | 2 |
* Geekdroid is a utility library for development on the Android |
3 |
* Platform. |
|
| 1 | 4 |
* |
|
75
534a19e25217
build: update license headers
Da Risk <da_risk@geekorum.com>
parents:
61
diff
changeset
|
5 |
* Copyright (C) 2017-2025 by Frederic-Charles Barthelery. |
| 1 | 6 |
* |
| 10 | 7 |
* This file is part of Geekdroid. |
| 1 | 8 |
* |
| 10 | 9 |
* Geekdroid is free software: you can redistribute it and/or modify |
| 1 | 10 |
* it under the terms of the GNU General Public License as published by |
11 |
* the Free Software Foundation, either version 3 of the License, or |
|
12 |
* (at your option) any later version. |
|
13 |
* |
|
| 10 | 14 |
* Geekdroid is distributed in the hope that it will be useful, |
| 1 | 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
* GNU General Public License for more details. |
|
18 |
* |
|
19 |
* You should have received a copy of the GNU General Public License |
|
| 10 | 20 |
* along with Geekdroid. If not, see <http://www.gnu.org/licenses/>. |
| 1 | 21 |
*/ |
22 |
package com.geekorum.build |
|
23 |
||
24 |
/** |
|
25 |
* This defines the configuration to run tests with gradle-avdl. |
|
26 |
* The CI will run the test on on the following devices. |
|
27 |
* To run this your project must have declared the following gradle properties |
|
28 |
* via command line or your gradle.properties |
|
29 |
* RUN_TESTS_ON_AVDL=true |
|
30 |
*/ |
|
31 |
||
32 |
private val runTestOnAvdl = findProperty("RUN_TESTS_ON_AVDL") as String?
|
|
33 |
val runTests = runTestOnAvdl?.toBoolean() ?: false |
|
34 |
||
35 |
if (runTests) {
|
|
36 |
val flydroidUrl = checkNotNull(findProperty("FLYDROID_URL") as String?) { "FLYDROID_URL property not specified" }
|
|
37 |
val flydroidKey = checkNotNull(findProperty("FLYDROID_KEY") as String?) { "FLYDROID_KEY property not specified" }
|
|
38 |
||
39 |
configureAvdlDevices(flydroidUrl, flydroidKey) |
|
40 |
} |