• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2025 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    // See: http://go/android-license-faq
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_library {
21    name: "MotionMechanicsDemoLib",
22
23    sdk_version: "current",
24    manifest: "AndroidManifest.xml",
25
26    srcs: [
27        "src/**/*.kt",
28    ],
29
30    static_libs: [
31        "PlatformComposeSceneTransitionLayout",
32        "mechanics",
33        "androidx.activity_activity-compose",
34        "androidx.compose.material3_material3",
35        "androidx.compose.material3_material3-window-size-class",
36        "androidx.compose.material_material-icons-extended",
37        "androidx.compose.runtime_runtime",
38        "androidx.navigation_navigation-compose",
39        "androidx.window_window",
40    ],
41
42    kotlincflags: ["-Xjvm-default=all"],
43    use_resource_processor: true,
44}
45
46android_app {
47    name: "MotionMechanicsDemo",
48    defaults: [
49        "platform_app_defaults",
50        "SystemUI_optimized_defaults",
51    ],
52
53    sdk_version: "current",
54    manifest: "app/AndroidManifest.xml",
55
56    static_libs: [
57        "MotionMechanicsDemoLib",
58    ],
59
60    dxflags: ["--multi-dex"],
61    use_resource_processor: true,
62}
63