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

Unverified Commit b47e1147 authored by Arian's avatar Arian
Browse files

Backgrounds: Convert to ThemePicker plugin



Signed-off-by: default avatarJoey <joey@lineageos.org>
Change-Id: Id712abb130768a5c31785e7a91b889a65f169adb
parent 9928e039
Loading
Loading
Loading
Loading

.gitignore

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
*.iml
.gradle
/local.properties
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
+0 −13
Original line number Diff line number Diff line
@@ -35,23 +35,10 @@ LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/full
endif
endif

LOCAL_SRC_FILES := \
    $(call all-java-files-under, java)

LOCAL_USE_AAPT2 := true

LOCAL_STATIC_ANDROID_LIBRARIES := \
    androidx.annotation_annotation \
    androidx.appcompat_appcompat \
    androidx.palette_palette \
    androidx.recyclerview_recyclerview \
    androidx.transition_transition \
    com.google.android.material_material

LOCAL_PACKAGE_NAME := Backgrounds

LOCAL_PROGUARD_FLAG_FILES := ../../proguard-rules.pro

LOCAL_AAPT_FLAGS := --auto-add-overlay

LOCAL_SDK_VERSION := current
+12 −9
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2019 The LineageOS Project
  Copyright (C) 2020 The LineageOS Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
@@ -14,13 +13,17 @@
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<resources>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="org.lineageos.backgrounds">

    <color name="colorPrimary">#fefefe</color>
    <color name="colorPrimaryDark">#e0e0e0</color>
    <color name="colorAccent">#167c80</color>
    <application android:label="@string/app_name">

    <color name="ic_launcher_background">#70AE98</color>
        <receiver android:name=".LineageBackgrounds">
            <intent-filter>
                <action android:name="com.android.launcher3.action.PARTNER_CUSTOMIZATION"/>
            </intent-filter>
        </receiver>

    <color name="apply_closeBg">#4f000000</color>
</resources>
    </application>
</manifest>

app/.gitignore

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
/build

app/build.gradle

deleted100644 → 0
+0 −54
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 The LineageOS 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.
 */

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28

    defaultConfig {
        applicationId "org.lineageos.backgrounds"
        minSdkVersion 27
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    sourceSets {
        main {
            res.srcDirs = ['src/main/res', 'src/main/res_1080p/full', 'src/main/res_1080p/common']
        }
    }
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.palette:palette:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
}
Loading