Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 18 | * This file was created using the `create_project.py` script located in the |
| 19 | * `<AndroidX root>/development/project-creator` directory. |
| 20 | * |
| 21 | * Please use that script when creating a new project, rather than copying an existing project and |
| 22 | * modifying its settings. |
| 23 | */ |
Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 24 | import androidx.build.LibraryType |
| 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 29 | } |
| 30 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 31 | androidXMultiplatform { |
| 32 | android() |
Aurimas Liutikas | 4b208c8 | 2023-10-11 17:15:47 -0700 | [diff] [blame] | 33 | desktop() |
Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | dependencies { |
Jeff Gaston | 5725491 | 2023-07-18 13:30:51 -0400 | [diff] [blame] | 37 | commonMainImplementation(libs.kotlinStdlib) |
Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | android { |
| 41 | sourceSets { |
| 42 | main { |
| 43 | res.srcDirs += "src/commonMain/resources" |
| 44 | res.srcDirs += "src/androidMain/res" |
Sean McQuillan | e0191e2 | 2024-01-08 12:41:15 -0800 | [diff] [blame] | 45 | java.srcDirs += "src/androidMain/java" |
Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 46 | assets.srcDirs += "src/androidMain/assets" |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | androidx { |
| 52 | type = LibraryType.INTERNAL_TEST_LIBRARY |
| 53 | } |
| 54 | |
| 55 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 56 | namespace = "androidx.testutils.fonts" |
Sean McQuillan | 1f602ac | 2022-06-29 12:38:11 -0700 | [diff] [blame] | 57 | } |