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

Commit 5c565870 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Add first widget Preference for SPA

This also including a codelab app to show the demo.

Bug: 235727273
Test: android unit test
Ignore-AOSP-First: new library not in AOSP
Change-Id: Ib4d6e05c24ba10ca7749702524e3c64c114b1471
parent ca8747d4
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
build
/captures
.externalNativeBuild
.cxx
local.properties
+6 −0
Original line number Diff line number Diff line
chaohuiw@google.com
hanxu@google.com
kellyz@google.com
pierreqian@google.com

per-file *.xml = set noparent
+7 −0
Original line number Diff line number Diff line
{
  "presubmit": [
    {
      "name": "SpaLibTests"
    }
  ]
}
+28 −0
Original line number Diff line number Diff line
/*
 * Copyright 2022 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.
 */

buildscript {
    ext {
        minSdk_version = 31
        compose_version = '1.2.0-alpha04'
        compose_material3_version = '1.0.0-alpha06'
    }
}
plugins {
    id 'com.android.application' version '7.3.0-beta04' apply false
    id 'com.android.library' version '7.3.0-beta04' apply false
    id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
+33 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2022 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.
//

package {
    default_applicable_licenses: ["frameworks_base_license"],
}

android_app {
    name: "SpaLibCodelab",

    srcs: ["src/**/*.kt"],

    static_libs: [
        "SpaLib",
        "androidx.compose.runtime_runtime",
    ],
    kotlincflags: ["-Xjvm-default=all"],
    platform_apis: true,
    min_sdk_version: "31",
}
Loading