mirah / pindah

Tools for building Android applications with Mirah
Apache License 2.0
228 stars 27 forks source link

Exclude Mirah source files from mixed-source projects during build process #50

Open AtomicPair opened 10 years ago

AtomicPair commented 10 years ago

(Forked from #15 into separate issue.)

Problem

Since Pindah expects Mirah source files to reside alongside Java source files in the same directory, Android will package any non-Java source files from that directory into the final APK package during the build process.

Solution

Utilize the ANDROID_AAPT_IGNORE build flag to programmatically exclude the desired Mirah source files during the build process.

https://android.googlesource.com/platform/frameworks/base/+/90897ed87bce639bf6bb2ccf15fbabb59b131bab

Toni-zgz commented 4 years ago

This is a Mirah problem, not Pindah's.

I'd close it and open it in the Mirah project.