-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move remaining GPS packages to AndroidX repository. (#955)
"Pause" migrating everything to a common template, and pivot to moving the remaining packages from the GPS repository to the AndroidX repository. This should enable us to eliminate the circular dependencies between the two repositories which should help fix the majority of the #764 issues going forward. Bring in the GPS and Glide templates as new "templateSet", and merge in all the build infrastructure pieces that the GPS repository had to make it build correctly.
- Loading branch information
Showing
1,038 changed files
with
44,101 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Contains tasks for retrieving pre-generated parameter names for some GPS packages. | ||
// Ideally these days this could be replaced with `<JavaDocJar>` or `<AndroidSourceJar>`, | ||
// but for now we'll just copy what was in the GPS repository. | ||
|
||
var REF_DOCS_FILE = "./build/data/docs/play-services-firebase.zip"; | ||
var REF_METADATA_FILE = "./build/data/paramnames/play-services-firebase-metadata.xml"; | ||
var REF_PARAMNAMES_FILE = "./build/data/paramnames/play-services-firebase-paramnames.txt"; | ||
|
||
// Extracts parameter names and places them in the right spot for the GPS template | ||
Task ("javadocs-gps") | ||
.Does (() => | ||
{ | ||
EnsureDirectoryExists ("./externals/"); | ||
if (!FileExists ("./externals/docs.zip")) | ||
CopyFile (REF_DOCS_FILE, "./externals/docs.zip"); | ||
if (!DirectoryExists ("./externals/docs")) | ||
Unzip ("./externals/docs.zip", "./externals/docs"); | ||
if (!FileExists ("./externals/paramnames.txt")) | ||
CopyFile (REF_PARAMNAMES_FILE, "./externals/paramnames.txt"); | ||
if (!FileExists ("./externals/paramnames.xml")) | ||
CopyFile (REF_METADATA_FILE, "./externals/paramnames.xml"); | ||
return; | ||
var astJar = new FilePath ("./util/JavaASTParameterNames-1.0.jar"); | ||
var sourcesJars = GetFiles ("./externals/**/*-sources.jar"); | ||
foreach (var srcJar in sourcesJars) { | ||
var srcJarPath = MakeAbsolute (srcJar).FullPath; | ||
var outTxtPath = srcJarPath.Replace ("-sources.jar", "-paramnames.txt"); | ||
var outXmlPath = srcJarPath.Replace ("-sources.jar", "-paramnames.xml"); | ||
StartProcess ("java", "-jar \"" + MakeAbsolute(astJar).FullPath + "\" --text \"" + srcJarPath + "\" \"" + outTxtPath + "\""); | ||
StartProcess ("java", "-jar \"" + MakeAbsolute(astJar).FullPath + "\" --xml \"" + srcJarPath + "\" \"" + outXmlPath + "\""); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.