mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Make it possible to use a custom AAR to build servoapp
This commit is contained in:
parent
e051c5880e
commit
8106e5e9bf
3 changed files with 40 additions and 2 deletions
12
support/android/apk/servoview-local/build.gradle
Normal file
12
support/android/apk/servoview-local/build.gradle
Normal file
|
@ -0,0 +1,12 @@
|
|||
configurations.maybeCreate("default")
|
||||
|
||||
if (gradle.hasProperty('servoViewLocal')) {
|
||||
def aar = new File(gradle.servoViewLocal)
|
||||
if (aar.exists()) {
|
||||
artifacts.add('default', aar)
|
||||
} else {
|
||||
throw new GradleException('Failed to find ServoView AAR at: ' + gradle.servoViewLocal)
|
||||
}
|
||||
} else {
|
||||
throw new GradleException('Local ServoView AAR path not defined')
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue