Skip to content

Commit

Permalink
Create third_party directory. Rename GenerateFirebaseXml to GenerateG…
Browse files Browse the repository at this point in the history
…oogleServicesXml. Create WORKSPACE file.

Change-Id: Ib4130792dd5dc081bd98ca4b07e9e52d6f9b76e3
  • Loading branch information
ahumesky committed Jul 4, 2018
1 parent ab19e46 commit 378f071
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Empty file added WORKSPACE
Empty file.
6 changes: 6 additions & 0 deletions third_party/googleservices/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
java_binary(
name = "GenerateGoogleServicesXml",
srcs = ["java/com/google/gms/googleservices/GenerateGoogleServicesXml.java"],
deps = ["@com_google_code_gson_2_8_2//jar"],
visibility = ["//visibility:public"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* Command line:
* packageName inputJsonFile outputXmlFile
*/
public class GenerateFirebaseXml {
public class GenerateGoogleServicesXml {

private static final String STATUS_DISABLED = "1";
private static final String STATUS_ENABLED = "2";
Expand Down
7 changes: 1 addition & 6 deletions tools/googleservices/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
java_binary(
name = "GenerateFirebaseXml",
srcs = ["java/com/google/gms/googleservices/GenerateFirebaseXml.java"],
deps = ["@com_google_code_gson_2_8_2//jar"],
visibility = ["//visibility:public"],
)
exports_files(["defs.bzl"])
4 changes: 2 additions & 2 deletions tools/googleservices/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def google_services_xml(package_name, google_services_json):
name = name,
srcs = [google_services_json],
outs = outs,
tools = ["@rules_android//tools/googleservices:GenerateFirebaseXml"],
cmd = "$(location @rules_android//tools/googleservices:GenerateFirebaseXml) %s $< $@" % package_name,
tools = ["@tools_android//third_party/googleservices:GenerateGoogleServicesXml"],
cmd = "$(location @tools_android//third_party/googleservices:GenerateGoogleServicesXml) %s $< $@" % package_name,
)
return outs

Expand Down

0 comments on commit 378f071

Please sign in to comment.