From 30a82fc6b0077410a2227361cab92f57e92f59b7 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 14 Aug 2020 09:43:09 -0500 Subject: [PATCH] WIP: Try downloading Godot AAR. --- WORKSPACE | 15 +++++++++++---- src/android/games/lightsout/godot/tts/BUILD | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index b6f6897..80501d3 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,13 +1,20 @@ # Load the Android build rules -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") + http_archive( name = "build_bazel_rules_android", - urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"], sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806", strip_prefix = "rules_android-0.1.1", + urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"], ) # Configure Android SDK Path -load("@build_bazel_rules_android//android:rules.bzl", "android_sdk_repository", "aar_import", "android_library") +load("@build_bazel_rules_android//android:rules.bzl", "aar_import", "android_library", "android_sdk_repository") -android_sdk_repository(name = "androidsdk") \ No newline at end of file +android_sdk_repository(name = "androidsdk") + +http_file( + name = "godot_lib", + sha256 = "20c87d8aff967541985efd42ebe11f8c2c336b3a7681b8bbf714707cd7399639", + urls = ["https://downloads.tuxfamily.org/godotengine/3.2.2/godot-lib.3.2.2.stable.release.aar"], +) diff --git a/src/android/games/lightsout/godot/tts/BUILD b/src/android/games/lightsout/godot/tts/BUILD index ca92976..8d38d2c 100644 --- a/src/android/games/lightsout/godot/tts/BUILD +++ b/src/android/games/lightsout/godot/tts/BUILD @@ -2,7 +2,7 @@ load("@build_bazel_rules_android//android:rules.bzl", "aar_import", "android_lib aar_import( name = "godot", - aar = "godot-lib.3.2.2.stable.release.aar", + aar = "@godot_lib", ) android_library(