Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 0637b66

Browse files
committed
Remove old AAR_DIRS
Use AAR_INFOS instead
1 parent 6a8abd9 commit 0637b66

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

build.cake

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ var RENDERSCRIPT_FOLDER = "android-N";
2727
// We grab the previous release's api-info.xml to use as a comparison for this build's generated info to make an api-diff
2828
var BASE_API_INFO_URL = "https://github.com/xamarin/AndroidSupportComponents/releases/download/24.2.1/api-info.xml";
2929

30-
var AAR_DIRS = new [] {
31-
"support-v4", "support-v13", "appcompat-v7", "gridlayout-v7", "mediarouter-v7", "recyclerview-v7",
32-
"palette-v7", "cardview-v7", "leanback-v17", "design", "percent", "customtabs", "preference-v7",
33-
"preference-v14", "preference-leanback-v17", "recommendation", "animated-vector-drawable",
34-
"support-vector-drawable", "support-compat", "support-core-utils", "support-core-ui",
35-
"support-media-compat", "support-fragment", "transition"
36-
};
37-
3830
var AAR_INFOS = new [] {
3931
new AarInfo ("support-v4", "v4", "Xamarin.Android.Support.v4", AAR_VERSION, NUGET_VERSION, COMPONENT_VERSION),
4032
new AarInfo ("support-v13", "v13", "Xamarin.Android.Support.v13", AAR_VERSION, NUGET_VERSION, COMPONENT_VERSION),
@@ -221,8 +213,8 @@ Task ("externals")
221213
Unzip(path + "m2repository.zip", path);
222214

223215
// Copy the .aar's to a better location
224-
foreach (var aar in AAR_DIRS) {
225-
CopyFile (string.Format (path + "m2repository/com/android/support/{0}/{1}/{2}-{3}.aar", aar, AAR_VERSION, aar, AAR_VERSION),
216+
foreach (var aar in AAR_INFOS) {
217+
CopyFile (string.Format (path + "m2repository/com/android/support/{0}/{1}/{2}-{3}.aar", aar.Dir, AAR_VERSION, aar.Dir, AAR_VERSION),
226218
string.Format (path + "{0}.aar", aar));
227219
Unzip (string.Format (path + "{0}.aar", aar), path + aar);
228220

0 commit comments

Comments
 (0)