diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-09 12:27:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 12:27:12 -0800 |
commit | 349971b38019ea5513650090a5cad1878d33b431 (patch) | |
tree | 40f0bac4027b4fb74cf1936facb0b05ee11c6b61 /components/script/dom/cssstylesheet.rs | |
parent | 3d0fe9a0dd12650efc754f85287d2426c7463535 (diff) | |
parent | f1019569bf6d64a0797fd0b724fc6beba4580030 (diff) | |
download | servo-349971b38019ea5513650090a5cad1878d33b431.tar.gz servo-349971b38019ea5513650090a5cad1878d33b431.zip |
Auto merge of #15396 - zhuowei:android-extract-resources, r=larsbergstrom
android: extract resources to external storage on first launch
<!-- Please describe your changes on the following line: -->
If /sdcard/servo doesn't exist, extract it from the assets/ folder of the APK. This fixes issue #12129.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12129 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
I tested this on a Nexus 6P running Android 7.1: on launch, the app correctly detects that /sdcard/servo is missing, extracts the contents from assets/, and launches without force closing.
This is my first Servo pull request, so apologies in advance if I'm doing something wrong. Also, I was unable to build the entirety of Servo from source (complains about missing freetype), so I just built the Java portion separately; would that impact anything?
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15396)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/cssstylesheet.rs')
0 files changed, 0 insertions, 0 deletions