diff --git a/Android.bp b/Android.bp index 84831378..92b78198 100644 --- a/Android.bp +++ b/Android.bp @@ -78,7 +78,6 @@ java_library { name: "org.lineageos.platform", installable: true, static_libs: [ - "libphonenumber", "telephony-ext", ] + lineage_sdk_LOCAL_STATIC_ANDROID_LIBRARIES + lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES, @@ -107,7 +106,6 @@ java_library { name: "org.lineageos.platform.internal", required: ["services"], static_libs: [ - "libphonenumber", "telephony-ext", ] + lineage_sdk_LOCAL_STATIC_ANDROID_LIBRARIES + lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES, diff --git a/lib/Android.bp b/lib/Android.bp new file mode 100644 index 00000000..7e0695ce --- /dev/null +++ b/lib/Android.bp @@ -0,0 +1,28 @@ +// +// 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. +// + +lineage_sdk_lib_src = "src/java/org/lineageos/lib/" + +java_library_static { + name: "org.lineageos.lib.phone", + static_libs: [ + "libphonenumber", + ], + + srcs: [ + lineage_sdk_lib_src + "/phone/*.java", + ], +} diff --git a/sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumber.java b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumber.java similarity index 98% rename from sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumber.java rename to lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumber.java index ca27a579..60d2f88e 100644 --- a/sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumber.java +++ b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumber.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.lineageos.internal.phone; +package org.lineageos.lib.phone; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; diff --git a/sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumbers.java b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java similarity index 99% rename from sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumbers.java rename to lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java index a41801d8..b7827835 100644 --- a/sdk/src/java/org/lineageos/internal/phone/SensitivePhoneNumbers.java +++ b/lib/src/java/org/lineageos/lib/phone/SensitivePhoneNumbers.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.lineageos.internal.phone; +package org.lineageos.lib.phone; import android.content.Context; import android.os.Environment;