Comments (4)
This is because the LeakCanary library have declare some component in its AndroidManifest.xml file, which will be merged into the final AndroidManifest.xml in gradle build, while BUCK build will not merge AndroidManifest.xml file.
Workaround is similar to #10.
I think this problem could be fixed by doing this merge work during BUCK, through adding some build rules into BUCK script.
from okbuck.
And the merged manifest is:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.squareup.leakcanary" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<!-- To store the heap dumps and leak analysis results. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application>
<service
android:name="com.squareup.leakcanary.internal.HeapAnalyzerService"
android:enabled="false"
android:process=":leakcanary" />
<service
android:name="com.squareup.leakcanary.DisplayLeakService"
android:enabled="false" />
<activity
android:name="com.squareup.leakcanary.internal.DisplayLeakActivity"
android:enabled="false"
android:icon="@drawable/__leak_canary_icon"
android:label="@string/__leak_canary_display_activity_label"
android:taskAffinity="com.squareup.leakcanary"
android:theme="@style/__LeakCanary.Base" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
With LeakCanary 1.3.1.
from okbuck.
It will be fixed at #25
from okbuck.
fixed at #36
from okbuck.
Related Issues (20)
- Support Bill of Materials HOT 1
- Support Proguard 7
- Cleanup proguard in generated dependencies HOT 2
- Why BUCK http cache repo is deprecated? HOT 1
- .buckconfig has lower priority than .okbuck/config/okbuck.buckconfig HOT 1
- Can't set JVM-target in okbuck which need to run on jvm 1.8. HOT 1
- [Feature request] Support preserving files in external dependency cache
- Is React-Native supported
- [Question] How to debug missing autoValueConfigurations?
- My project is kotlin 1.3.50+ java, config okbuck plugin test build not faster
- The version 0.52.4 can't be found HOT 4
- How to check the okbuck actived? HOT 3
- mavenLocal cannot be translation to okbuck.buckconfig
- Add support for Robolectric 4.7.3 HOT 1
- Create Release Branch to support 0.52.4
- Resolve discrepancy between commits on master and release branch
- Start cutting releases to Maven Central. HOT 1
- Run app_kt:buckWrapper failed HOT 2
- Okbuck fails if exportDependencies > file path doesn't exist
- Uber signing certificate revoked - resign code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okbuck.