Hi guys, is it possible to have this combination working without file manipulation in gradle?
The problem is that GCM wants to be in the manifest, with an absolute package name, which instead changes based on the buildvariant. All of this because I couldn't have GCM working while keeping GCMIntentService.java in main, where it belongs. Do you know how I could solve this? Here is the manifest I had to force for the particular buildVariant I need now: <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="com.my.app.flavor1" > > > <permission > android:name="com.my.app.flavor1.debugQA.permission.C2D_MESSAGE" > android:protectionLevel="signature" /> > > <application> > <service > android:name="com.my.app.flavor1.debugQA.GCMIntentService"/> > <receiver > android:name="com.google.android.gcm.GCMBroadcastReceiver" > android:permission="com.google.android.c2dm.permission.SEND" > > <intent-filter> > <action > android:name="com.google.android.c2dm.intent.RECEIVE" /> > <action > android:name="com.google.android.c2dm.intent.REGISTRATION" /> > <category android:name="com.my.app.flavor1" /> > </intent-filter> > </receiver> > </application> > </manifest> > Thanks -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
