diff --git a/NativeCode.bp b/NativeCode.bp index c489d1a03ab..8c36b5c8f8a 100644 --- a/NativeCode.bp +++ b/NativeCode.bp @@ -63,6 +63,7 @@ cc_library_shared { "dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp", ], shared_libs: [ + "libandroidicu", "libandroidio", "libbase", "libcrypto", @@ -73,20 +74,6 @@ cc_library_shared { static_libs: [ "libziparchive", ], - target: { - android: { - shared_libs: ["libandroidicu"], - }, - host: { - shared_libs: [ - "libicuuc", - "libicui18n", - ], - static_libs: [ - "libandroidicuinit", - ], - }, - }, } cc_library_shared { diff --git a/luni/src/main/native/libcore_icu_ICU.cpp b/luni/src/main/native/libcore_icu_ICU.cpp index 4b379cd6c4d..0fca74ec94a 100644 --- a/luni/src/main/native/libcore_icu_ICU.cpp +++ b/luni/src/main/native/libcore_icu_ICU.cpp @@ -20,13 +20,7 @@ #include #include - - -#ifdef __ANDROID__ - #include -#else - #include -#endif +#include #include #include @@ -244,11 +238,7 @@ static JNINativeMethod gMethods[] = { // Init ICU, configuring it and loading the data files. void register_libcore_icu_ICU(JNIEnv* env) { -#ifdef __ANDROID__ AIcu_register(); -#else - android_icu_register(); -#endif jniRegisterNativeMethods(env, "libcore/icu/ICU", gMethods, NELEM(gMethods)); } @@ -257,9 +247,5 @@ void register_libcore_icu_ICU(JNIEnv* env) { void unregister_libcore_icu_ICU() { // Skip unregistering JNI methods explicitly, class unloading takes care of // it. -#ifdef __ANDROID__ AIcu_deregister(); -#else - android_icu_deregister(); -#endif }