From d4c6ef70612f48c4612ec827bd89964d0955cd6f Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Wed, 11 Feb 2015 15:17:31 -0800 Subject: [PATCH] [SetupWizardLib] Initial project structure Setup the initial project structure of the Setup Wizard Library, and the makefiles. Change-Id: I169c370d875fda2e73eefa59dbf19b8cb4c83d6b --- library/Android.mk | 9 ++++++++ library/AndroidManifest.xml | 20 ++++++++++++++++++ library/common.mk | 17 +++++++++++++++ .../setupwizardlib/SetupWizardLayout.java | 21 +++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 library/Android.mk create mode 100644 library/AndroidManifest.xml create mode 100644 library/common.mk create mode 100644 library/src/com/android/setupwizardlib/SetupWizardLayout.java diff --git a/library/Android.mk b/library/Android.mk new file mode 100644 index 0000000..1c43edb --- /dev/null +++ b/library/Android.mk @@ -0,0 +1,9 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SDK_VERSION := current +LOCAL_MODULE := setup-wizard-lib +LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +include $(BUILD_STATIC_JAVA_LIBRARY) diff --git a/library/AndroidManifest.xml b/library/AndroidManifest.xml new file mode 100644 index 0000000..ef34dab --- /dev/null +++ b/library/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/library/common.mk b/library/common.mk new file mode 100644 index 0000000..6a62ead --- /dev/null +++ b/library/common.mk @@ -0,0 +1,17 @@ +# +# Include this make file to build your application against this module. +# +# Make sure to include it after you've set all your desired LOCAL variables. +# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file. +# +# For example: +# +# LOCAL_RESOURCE_DIR := \ +# $(LOCAL_PATH)/res +# +# include frameworks/opt/setupwizard/library/common.mk +# + +LOCAL_RESOURCE_DIR += $(call my-dir)/res +LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.setupwizardlib +LOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib diff --git a/library/src/com/android/setupwizardlib/SetupWizardLayout.java b/library/src/com/android/setupwizardlib/SetupWizardLayout.java new file mode 100644 index 0000000..6eea642 --- /dev/null +++ b/library/src/com/android/setupwizardlib/SetupWizardLayout.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2015 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 com.android.setupwizardlib; + +public class SetupWizardLayout { + // TODO: Implement this class +}