summaryrefslogtreecommitdiffstats
path: root/mobile/android/gradle
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /mobile/android/gradle
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'mobile/android/gradle')
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-javadoc.jarbin0 -> 62835 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-sources.jarbin0 -> 9106 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.jarbin0 -> 59392 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.pom34
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml12
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/maven-metadata-local.xml11
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml12
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-javadoc.jarbin0 -> 62835 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-sources.jarbin0 -> 9106 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.jarbin0 -> 59392 bytes
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.pom57
-rw-r--r--mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/maven-metadata-local.xml11
-rw-r--r--mobile/android/gradle/with_gecko_binaries.gradle105
13 files changed, 242 insertions, 0 deletions
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-javadoc.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-javadoc.jar
new file mode 100644
index 000000000..d68a32596
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-javadoc.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-sources.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-sources.jar
new file mode 100644
index 000000000..ea22583c1
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT-sources.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.jar
new file mode 100644
index 000000000..b0c513916
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.pom b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.pom
new file mode 100644
index 000000000..b254be06b
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/gradle-plugin-1.5.0-SNAPSHOT.pom
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>gradle-plugin</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.rauschig</groupId>
+ <artifactId>jarchivelib</artifactId>
+ <version>0.6.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.easytesting</groupId>
+ <artifactId>fest-assert-core</artifactId>
+ <version>2.0M10</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.android.tools.build</groupId>
+ <artifactId>gradle</artifactId>
+ <version>1.5.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.4</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml
new file mode 100644
index 000000000..83eab73b9
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>gradle-plugin</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <localCopy>true</localCopy>
+ </snapshot>
+ <lastUpdated>20160302034904</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/maven-metadata-local.xml b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/maven-metadata-local.xml
new file mode 100644
index 000000000..69ba60157
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/gradle-plugin/maven-metadata-local.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>gradle-plugin</artifactId>
+ <versioning>
+ <versions>
+ <version>1.5.0-SNAPSHOT</version>
+ </versions>
+ <lastUpdated>20160302034904</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml
new file mode 100644
index 000000000..f231002c6
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/maven-metadata-local.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>sdk-manager-plugin</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <localCopy>true</localCopy>
+ </snapshot>
+ <lastUpdated>20160302034904</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-javadoc.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-javadoc.jar
new file mode 100644
index 000000000..d68a32596
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-javadoc.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-sources.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-sources.jar
new file mode 100644
index 000000000..ea22583c1
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT-sources.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.jar b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.jar
new file mode 100644
index 000000000..b0c513916
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.jar
Binary files differ
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.pom b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.pom
new file mode 100644
index 000000000..109d6d13b
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/1.5.0-SNAPSHOT/sdk-manager-plugin-1.5.0-SNAPSHOT.pom
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>sdk-manager-plugin</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <name>SDK Manager</name>
+ <description>Gradle plugin which downloads and manages your Android SDK.</description>
+ <url>https://github.com/JakeWharton/sdk-manager-plugin</url>
+ <inceptionYear>2014</inceptionYear>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <developers>
+ <developer>
+ <id>jakewharton</id>
+ <name>Jake Wharton</name>
+ <email>jakewharton@gmail.com</email>
+ </developer>
+ </developers>
+ <scm>
+ <connection>scm:git:git://github.com/JakeWharton/sdk-manager-plugin.git</connection>
+ <developerConnection>scm:git:ssh://git@github.com/JakeWharton/sdk-manager-plugin.git</developerConnection>
+ <url>https://github.com/JakeWharton/sdk-manager-plugin</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>org.rauschig</groupId>
+ <artifactId>jarchivelib</artifactId>
+ <version>0.6.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.easytesting</groupId>
+ <artifactId>fest-assert-core</artifactId>
+ <version>2.0M10</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.android.tools.build</groupId>
+ <artifactId>gradle</artifactId>
+ <version>1.5.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.4</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/maven-metadata-local.xml b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/maven-metadata-local.xml
new file mode 100644
index 000000000..7b55c4835
--- /dev/null
+++ b/mobile/android/gradle/m2repo/com/jakewharton/sdkmanager/sdk-manager-plugin/maven-metadata-local.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>com.jakewharton.sdkmanager</groupId>
+ <artifactId>sdk-manager-plugin</artifactId>
+ <versioning>
+ <versions>
+ <version>1.5.0-SNAPSHOT</version>
+ </versions>
+ <lastUpdated>20160302034904</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/mobile/android/gradle/with_gecko_binaries.gradle b/mobile/android/gradle/with_gecko_binaries.gradle
new file mode 100644
index 000000000..9048ab6fb
--- /dev/null
+++ b/mobile/android/gradle/with_gecko_binaries.gradle
@@ -0,0 +1,105 @@
+// We run fairly hard into a fundamental limitation of the Android Gradle
+// plugin. There are many bugs filed about this, but
+// https://code.google.com/p/android/issues/detail?id=216978#c6 is a reason one.
+// The issue is that we need fine-grained control over when to include Gecko's
+// binary libraries into the GeckoView AAR and the Fennec APK, and that's hard
+// to achieve. In particular:
+//
+// * :app:automation wants :geckoview to not include Gecko binaries (automation
+// * build, before package)
+//
+// * :geckoview:withLibraries wants :geckoview to include Gecko binaries
+// * (automation build, after package)
+//
+// * non-:app:automation wants :geckoview to include Gecko binaries (local
+// * build, always after package)
+//
+// publishNonDefault (see
+// http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication)
+// is intended to address this, but doesn't handle our case. That option always
+// builds *all* configurations, which fails when the required Gecko binaries
+// don't exist (automation build, before package). So instead, we make both
+// :app and :geckoview both know how to include the Gecko binaries, and use a
+// non-default, non-published :geckoview:withGeckoBinaries configuration to
+// handle automation's needs. Simple, right?
+
+// The omnijar inputs are listed as resource directory inputs to a dummy JAR.
+// That arrangement labels them nicely in IntelliJ. See the comment in the
+// :omnijar project for more context.
+evaluationDependsOn(':omnijar')
+
+task buildOmnijar(type:Exec) {
+ dependsOn rootProject.generateCodeAndResources
+
+ // See comment in :omnijar project regarding interface mismatches here.
+ inputs.source project(':omnijar').sourceSets.main.resources.srcDirs
+
+ // Produce a single output file.
+ outputs.file "${topobjdir}/dist/fennec/assets/omni.ja"
+
+ workingDir "${topobjdir}"
+
+ commandLine mozconfig.substs.GMAKE
+ args '-C'
+ args "${topobjdir}/mobile/android/base"
+ args 'gradle-omnijar'
+
+ // Only show the output if something went wrong.
+ ignoreExitValue = true
+ standardOutput = new ByteArrayOutputStream()
+ errorOutput = standardOutput
+ doLast {
+ if (execResult.exitValue != 0) {
+ throw new GradleException("Process '${commandLine}' finished with non-zero exit value ${execResult.exitValue}:\n\n${standardOutput.toString()}")
+ }
+ }
+}
+
+task syncOmnijarFromDistDir(type: Sync) {
+ into("${project.buildDir}/generated/omnijar")
+ from("${topobjdir}/dist/fennec/assets") {
+ include 'omni.ja'
+ }
+}
+
+task checkLibsExistInDistDir<< {
+ if (syncLibsFromDistDir.source.empty) {
+ throw new GradleException("Required JNI libraries not found in ${topobjdir}/dist/fennec/lib. Have you built and packaged?")
+ }
+}
+
+task syncLibsFromDistDir(type: Sync, dependsOn: checkLibsExistInDistDir) {
+ into("${project.buildDir}/generated/jniLibs")
+ from("${topobjdir}/dist/fennec/lib")
+}
+
+task checkAssetsExistInDistDir<< {
+ if (syncAssetsFromDistDir.source.empty) {
+ throw new GradleException("Required assets not found in ${topobjdir}/dist/fennec/assets. Have you built and packaged?")
+ }
+}
+
+task syncAssetsFromDistDir(type: Sync, dependsOn: checkAssetsExistInDistDir) {
+ into("${project.buildDir}/generated/assets")
+ from("${topobjdir}/dist/fennec/assets") {
+ exclude 'omni.ja'
+ }
+}
+
+ext.configureVariantWithGeckoBinaries = { variant ->
+ // Like 'local' or 'localOld'; may be null.
+ def productFlavor = variant.productFlavors ? variant.productFlavors[0].name : ""
+ // Like 'debug' or 'release'.
+ def buildType = variant.buildType.name
+
+ syncOmnijarFromDistDir.dependsOn buildOmnijar
+ def generateAssetsTask = tasks.findByName("generate${productFlavor.capitalize()}${buildType.capitalize()}Assets")
+ generateAssetsTask.dependsOn syncOmnijarFromDistDir
+ generateAssetsTask.dependsOn syncLibsFromDistDir
+ generateAssetsTask.dependsOn syncAssetsFromDistDir
+
+ def sourceSet = productFlavor ? "${productFlavor}${buildType.capitalize()}" : buildType
+ android.sourceSets."${sourceSet}".assets.srcDir syncOmnijarFromDistDir.destinationDir
+ android.sourceSets."${sourceSet}".assets.srcDir syncAssetsFromDistDir.destinationDir
+ android.sourceSets."${sourceSet}".jniLibs.srcDir syncLibsFromDistDir.destinationDir
+}