summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/Android.mk5
-rw-r--r--library/resources/JACK-INF/legacyMultidexInstallation.jpp49
2 files changed, 54 insertions, 0 deletions
diff --git a/library/Android.mk b/library/Android.mk
index 053084f..dd8a6ff 100644
--- a/library/Android.mk
+++ b/library/Android.mk
@@ -36,4 +36,9 @@ $(ASMD_VERSION_INTERMEDIATE):
LOCAL_JAVA_RESOURCE_FILES := $(ASMD_VERSION_INTERMEDIATE)
+# Use a dir because we have files in subfolders and we want to keep the path into the archive
+#
+# use "resources" instead of "res" because res is already used for packaging the SDK project
+LOCAL_JAVA_RESOURCE_DIRS := resources
+
include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/library/resources/JACK-INF/legacyMultidexInstallation.jpp b/library/resources/JACK-INF/legacyMultidexInstallation.jpp
new file mode 100644
index 0000000..8a81eba
--- /dev/null
+++ b/library/resources/JACK-INF/legacyMultidexInstallation.jpp
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2014 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.
+ */
+
+multidexInstanciable:
+ @@com.android.jack.annotations.MultiDexInstaller
+ class *
+ is {
+ public
+ }
+ extends {
+ class android.app.Instrumentation
+ | class android.app.Activity
+ | class android.app.Service
+ | class android.content.ContentProvider
+ | class android.content.BroadcastReceiver
+ | class android.app.backup.BackupAgent
+ | class android.app.Application
+ }
+ do {
+ @@com.android.jack.annotations.MultiDexInstaller
+ method void <init>();
+ }
+
+multidexInstaller:
+ class *
+ is {
+ public
+ }
+ extends {
+ class android.app.Application
+ }
+ do {
+ @@com.android.jack.annotations.MultiDexInstaller
+ method void attachBaseContext(class android.content.Context)
+ ;
+ }