1// Copyright (C) 2023 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
15include ':torus-wallpaper-settings'
16include ':torus-math'
17include ':torus-utils'
18include ':torus-framework-canvas'
19include ':torus-core'
20include ':lib-torus'
21
22rootProject.name = "Live Wallpapers Framework"
23
24// Reads wallpaper.build.properties from the project and loads the build
25// settings if it exists
26def wallpaperBuildProperties = file("wallpaper.build.properties")
27def localProperties = new Properties()
28if (wallpaperBuildProperties.canRead())
29    wallpaperBuildProperties.withInputStream { localProperties.load(it) }
30
31def getWallpaperProperty = { name, defaultValue ->
32    if (localProperties.getProperty(name)) {
33        return localProperties.getProperty(name)
34    }
35    return defaultValue
36}
37
38gradle.ext.wallpaperMinSdkVersion = getWallpaperProperty('wallpaperMinSdkVersion', 28)
39gradle.ext.wallpaperTargetSdkVersion = getWallpaperProperty('wallpaperTargetSdkVersion', 30)
40gradle.ext.compileSdkVersion = getWallpaperProperty('compileSdkVersion', 30)
41gradle.ext.buildToolsVersion = getWallpaperProperty('buildToolsVersion', '29.0.3')
42gradle.ext.kotlinVersion = getWallpaperProperty('kotlinVersion', '1.4.32')
43gradle.ext.coreKtxVersion = getWallpaperProperty('coreKtxVersion', '1.6.0')
44gradle.ext.androidXLibVersion_alpha = getWallpaperProperty(
45        'androidXLibVersion_alpha', '1.1.0-alpha01')
46
47gradle.ext.isPixel = false
48