Commit f4af16f6 authored by Geoffrey Métais's avatar Geoffrey Métais

change intents in manifest to match packagename

parent 662fe5aa
......@@ -426,10 +426,10 @@
android:label="@string/widget_name_w" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="org.videolan.vlc.widget.INIT" />
<action android:name="org.videolan.vlc.widget.UPDATE" />
<action android:name="org.videolan.vlc.widget.UPDATE_COVER" />
<action android:name="org.videolan.vlc.widget.UPDATE_POSITION" />
<action android:name="_PACKAGENAME_.widget.INIT" />
<action android:name="_PACKAGENAME_.widget.UPDATE" />
<action android:name="_PACKAGENAME_.widget.UPDATE_COVER" />
<action android:name="_PACKAGENAME_.widget.UPDATE_POSITION" />
</intent-filter>
<meta-data
......@@ -442,10 +442,10 @@
android:label="@string/widget_name_b" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="org.videolan.vlc.widget.INIT" />
<action android:name="org.videolan.vlc.widget.UPDATE" />
<action android:name="org.videolan.vlc.widget.UPDATE_COVER" />
<action android:name="org.videolan.vlc.widget.UPDATE_POSITION" />
<action android:name="_PACKAGENAME_.widget.INIT" />
<action android:name="_PACKAGENAME_.widget.UPDATE" />
<action android:name="_PACKAGENAME_.widget.UPDATE_COVER" />
<action android:name="_PACKAGENAME_.widget.UPDATE_POSITION" />
</intent-filter>
<meta-data
......@@ -455,7 +455,7 @@
<receiver android:name=".RemoteControlClientReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="org.videolan.vlc.remote.PlayPause" />
<action android:name="_PACKAGENAME_.remote.PlayPause" />
</intent-filter>
</receiver>
</application>
......
......@@ -151,10 +151,19 @@ android {
variant.outputs.each { output ->
def outputName = "VLC-Android-"
if (!variant.productFlavors.get(0).name.equals("vanilla"))
outputName += variant.productFlavors.get(0).name.toUpperCase()+"-"
outputName += vlcVersion+"-"+variant.productFlavors.get(1).name+".apk"
outputName += variant.productFlavors.get(0).name.toUpperCase() + "-"
outputName += vlcVersion + "-" + variant.productFlavors.get(1).name + ".apk"
output.outputFile = new File(output.outputFile.parentFile, outputName);
}
//set intents with correct package name
variant.outputs.each { output ->
output.processManifest.doLast{
def manifestOutFile = output.processManifest.manifestOutputFile
def newFileContents = manifestOutFile.getText('UTF-8').replace("_PACKAGENAME_", variant.applicationId)
manifestOutFile.write(newFileContents, 'UTF-8')
}
}
}
sourceSets.main {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment