Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 36955e2

Browse files
authored
Merge pull request #58 from NativeScript/hdeshev/android-native-excludes
Exclude from mangling classes inheriting from Android native types.
2 parents 05f33ed + 473c080 commit 36955e2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: index.js

+19
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ exports.getAppPath = function (platform) {
135135
};
136136

137137
exports.uglifyMangleExcludes = [
138+
//Control names
138139
"ActionBar",
139140
"ActivityIndicator",
140141
"Button",
@@ -155,6 +156,24 @@ exports.uglifyMangleExcludes = [
155156
"TextView",
156157
"TimePicker",
157158
"View",
159+
160+
//Android native class extenders
161+
"TapAndDoubleTapGestureListener"
162+
"SwipeGestureListener",
163+
"PinchGestureListener",
164+
"SwipeGestureListener",
165+
"CustomTypefaceSpan",
166+
"BroadcastReceiver",
167+
"LruBitmapCache",
168+
"DialogFragmentClassInner",
169+
"SegmentedBarColorDrawable",
170+
"OurTabHost",
171+
"PagerAdapterClassInner",
172+
"PageChangedListener",
173+
"ListViewAdapter",
174+
"WebViewClientClassInner",
175+
"NativeScriptActivity",
176+
"FragmentClass",
158177
];
159178

160179
function getPackageJsonEntry() {

0 commit comments

Comments
 (0)