chromium/third_party/android_deps/settings.gradle.template

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

def subprojectDirs = [{{subproject_dirs}}]

def subprojects = new HashMap<String, String>()
def i = 1
subprojectDirs.each { subprojectDir ->
  def subprojectName = 'subproject' + i
  subprojects.put(subprojectName, subprojectDir)
  include(subprojectName)
}

rootProject.children.each { prj ->
  prj.projectDir = new File(subprojects[prj.name])
}