New issue
Advanced search Search tips

Issue 714131 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

gn does not recognize updates contents of android_assets()

Reported by elad.alon@webrtc.org, Apr 21 2017

Issue description

Steps to reproduce the problem:
1.Create an APK which also has an assets directory which is imported in the form:
android_assets("some_assets") {
  sources = [
    "some/dir/",
  ]
}

2. Build once.
3. Change the contents of some/dir/.
4. Build again.

What is the expected behavior?
I would expect the build procedure to notice that the directory's contents have changed, and the APK to be updated.

What went wrong?
The APK is not updated. To trigger an update, I need to comment out "some/dir/", build, then uncomment and build again.

Did this work before? N/A 

Chrome version: 57.0.2987.133  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 25.0 r0
 
To put things in a subdirectory, you can use "renaming_sources" and "renaming_destinations":
https://cs.chromium.org/chromium/src/build/config/android/rules.gni?q=android_assets+gni&sq=package:chromium&l=796

(admittedly, a bit clunky, but it's not a use case that's come up much)
Thanks. I wonder, though, wouldn't it be easier to just allow the entire directory?

Comment 3 by caseq@chromium.org, Apr 23 2017

Components: -Platform>DevTools Build
Status: WontFix (was: Unconfirmed)
***Bulk edit***

Closing due to inactivity, please feel free to reopen if needed.

Sign in to add a comment