Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 719eee2b authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Sunny Goyal
Browse files

Create iconloader library

Bug: 115891474
Test: Builds everything

Change-Id: I1d75702d4e5a10d694eeb839784a629de2f74dd2
parent b1513bd8
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -29,23 +29,3 @@ java_library_static {
    ],
    platform_apis: true,
}


android_library {
    name: "icon-loader",
    sdk_version: "28",
    static_libs: [
        "androidx.core_core",
    ],
    resource_dirs: [
        "res",
    ],
    srcs: [
        "src/com/android/launcher3/icons/BaseIconFactory.java",
        "src/com/android/launcher3/icons/BitmapInfo.java",
        "src/com/android/launcher3/icons/IconNormalizer.java",
        "src/com/android/launcher3/icons/FixedScaleDrawable.java",
        "src/com/android/launcher3/icons/ShadowGenerator.java",
        "src/com/android/launcher3/icons/ColorExtractor.java",
    ],
}
+2 −1
Original line number Diff line number Diff line
@@ -67,7 +67,8 @@ LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_ANDROID_LIBRARIES := \
    androidx.recyclerview_recyclerview \
    androidx.dynamicanimation_dynamicanimation \
    androidx.preference_preference
    androidx.preference_preference \
    iconloader

LOCAL_STATIC_JAVA_LIBRARIES := LauncherPluginLib

+14 −10
Original line number Diff line number Diff line
@@ -4,19 +4,17 @@ buildscript {
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6'
        classpath GRADLE_CLASS_PATH
        classpath PROTOBUF_CLASS_PATH
    }
}

final String SUPPORT_LIBS_VERSION = '1.0.0-alpha1'

apply plugin: 'com.android.application'
apply plugin: 'com.google.protobuf'

android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    compileSdkVersion COMPILE_SDK.toInteger()
    buildToolsVersion BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion 21
@@ -120,9 +118,15 @@ repositories {
}

dependencies {
    implementation "androidx.dynamicanimation:dynamicanimation:${SUPPORT_LIBS_VERSION}"
    implementation "androidx.recyclerview:recyclerview:${SUPPORT_LIBS_VERSION}"
    implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
    implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
    implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
    implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
    implementation PROTOBUF_DEPENDENCY
    implementation project(':IconLoader')

    // This is already included in sysui_shared
    aospImplementation fileTree(dir: "libs", include: 'plugin_core.jar')
    l3goImplementation fileTree(dir: "libs", include: 'plugin_core.jar')

    quickstepImplementation fileTree(dir: "quickstep/libs", include: 'sysui_shared.jar')

@@ -133,7 +137,7 @@ dependencies {
    androidTestImplementation 'com.android.support.test:runner:1.0.0'
    androidTestImplementation 'com.android.support.test:rules:1.0.0'
    androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
    androidTestImplementation "androidx.annotation:annotation:${SUPPORT_LIBS_VERSION}"
    androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
}

protobuf {

gradle.properties

0 → 100644
+13 −0
Original line number Diff line number Diff line
# Until all the dependencies move to android X
android.useAndroidX = true
android.enableJetifier = true

ANDROID_X_VERSION=1.0.0-beta01

GRADLE_CLASS_PATH=com.android.tools.build:gradle:3.2.0-rc03

PROTOBUF_CLASS_PATH=com.google.protobuf:protobuf-gradle-plugin:0.8.6
PROTOBUF_DEPENDENCY=com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7

BUILD_TOOLS_VERSION=28.0.3
COMPILE_SDK=28
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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.

android_library {
    name: "iconloader",
    sdk_version: "28",
    min_sdk_version: "21",
    static_libs: [
        "androidx.core_core",
    ],
    resource_dirs: [
        "res",
    ],
    srcs: [
        "src/**/*.java",
    ],
}
Loading