-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): remove usage of getResourceAsStream() #11058
Conversation
android/modules/ui/src/java/ti/modules/titanium/ui/widget/tableview/TiBaseTableViewItem.java
Outdated
Show resolved
Hide resolved
android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebViewBinding.java
Show resolved
Hide resolved
I've updated the PR's summary with test code that will test your changes. I think the code which loads "ti:" URL schemes might be dead code. We only use a "ti:" scheme when assigning a "sourceURL" path to our JavaScript files. I've never seen us do this with drawables/images before. I think it's okay to keep your code changes just-in-case though. |
b6e8ad8
to
61caa1b
Compare
@jquick-axway Updated PR, thanks for the tests! |
@garymathews Got any timing data? Just curious, since you've made such a big perf boost in the snapshot stuff you've done... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
I just took some benchmarks. Since every app is getting burned by us reading "build.properties" on startup, this is what I measured. I measured the old Nexus 4:
Pixel 2:
It's so fast, I had to time it in nanoseconds to measure it properly. :) The key thing here is this PR shaves off |
2e4c5e3
to
7ef062b
Compare
3200e59
to
fbcc0a7
Compare
@garymathews I don't see the fix with sdk in this PR .with the testcase 1 im seeing powered by 1.0.n/a not 8.3 .for test case 2 &3 throws following error and for 4 table view appears different than GA.Can you please take a look |
fde7bde
to
ab59314
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's 2 changes that @jquick-axway mentions that need to be addressed before this can be FR'd
@garymathews I'm still seeing the same error as before #11058 (comment) can you please look at it |
09822d4
to
ffb2d4c
Compare
|
779d4ce
to
81ce27c
Compare
@garymathews there is an issue with the PR related to tableviewRow height. Any tableview row with icons is shown with more height and also the icons are displayed quite big. Use the test code from Test4 in this PR. |
10db315
to
f934825
Compare
f934825
to
1236235
Compare
@ssekhri Pushed a fix |
FR Passed. |
JIRA Ticket
Summary:
getResourceAsStream()
as this method has high overheadgetResource()
orgetAsset()
where appropriateTest 1:
(This verifies we can still read our "build.properties" file.)
8.3.0
and not1.0.0
<YourAppName> <YourAppVersion> (Powered by Titanium 8.3.0.2d9d45bfc7)
Test 2:
(This verifies that our WebView JS bindings still work.)
WebView
to load the appcelerator website.@@@ document.title: Home - Appcelerator | The Mobile First Platform
Test 3:
(This verifies that our WebView JS bindings still work.)
DOMCountentLoaded
toast message appears at the bottom of the screen when the countdown reaches zero.Test 4
(This verifies our TableView icons still work.)