[GH] Add playground support for activity + fragments + navigation
Test: cd fragment && ./gradlew bOS && cd ../activity && ./gradlew bOS && cd ../navigation && ./gradlew bOS
This is an imported pull request from https://github.com/androidx/androidx/pull/85.
Resolves #85
Github-Pr-Head-Sha: e2dec1392e648677362b7a15baf060420c5f07c5
GitOrigin-RevId: 6922620fe2aa51716e98c291d0c6f6ddfb9c69ae
Change-Id: Icd5adac06aed58e52136f8470babc81a1f7699a7
diff --git a/fragment/settings.gradle b/fragment/settings.gradle
new file mode 100644
index 0000000..c70eef1
--- /dev/null
+++ b/fragment/settings.gradle
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 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
+ *
+ * http://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.
+ */
+
+// see ../playground-common/README.md for details on how this works
+rootProject.name = "paging-playground"
+apply from: "../playground-common/playground-include-settings.gradle"
+setupPlayground(this, "..")
+selectProjectsFromAndroidX({ name ->
+ if (name.startsWith(":fragment")) return true
+ if (name.startsWith(":internal-testutils-runtime")) return true
+ if (name.startsWith(":internal-testutils-truth")) return true
+ return false
+})