You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.3 KiB
78 lines
2.3 KiB
/*
|
|
* Copyright 2021 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
pluginManagement {
|
|
includeBuild("build-logic")
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
// Register the AndroidX snapshot repository first so snapshots don't attempt (and fail)
|
|
// to download from the non-snapshot repositories
|
|
maven(url = "https://androidx.dev/snapshots/builds/9042167/artifacts/repository") {
|
|
content {
|
|
// The AndroidX snapshot repository will only have androidx artifacts, don't
|
|
// bother trying to find other ones
|
|
includeGroupByRegex("androidx\\..*")
|
|
}
|
|
}
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
rootProject.name = "nowinandroid"
|
|
include(":app")
|
|
include(":app-nia-catalog")
|
|
include(":benchmark")
|
|
include(":core:common")
|
|
include(":core:data")
|
|
include(":core:data-test")
|
|
include(":core:database")
|
|
include(":core:datastore")
|
|
include(":core:datastore-test")
|
|
include(":core:designsystem")
|
|
include(":core:model")
|
|
include(":core:navigation")
|
|
include(":core:network")
|
|
include(":core:ui")
|
|
include(":core:testing")
|
|
include(":feature:author")
|
|
include(":feature:foryou")
|
|
include(":feature:interests")
|
|
include(":feature:bookmarks")
|
|
include(":feature:topic")
|
|
include(":lint")
|
|
include(":sync")
|
|
|
|
|
|
val prePushHook = file(".git/hooks/pre-push")
|
|
val commitMsgHook = file(".git/hooks/commit-msg")
|
|
val hooksInstalled = commitMsgHook.exists()
|
|
&& prePushHook.exists()
|
|
&& prePushHook.readBytes().contentEquals(file("tools/pre-push").readBytes())
|
|
|
|
if (!hooksInstalled) {
|
|
exec {
|
|
commandLine("tools/setup.sh")
|
|
workingDir = rootProject.projectDir
|
|
}
|
|
} |