Skip to content
Snippets Groups Projects
Commit 150bff59 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

No need to manually sed manifest

parent 8919bb36
No related branches found
No related tags found
No related merge requests found
......@@ -494,10 +494,10 @@
android:label="@string/widget_name_w" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<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" />
<action android:name="${applicationId}.widget.INIT" />
<action android:name="${applicationId}.widget.UPDATE" />
<action android:name="${applicationId}.widget.UPDATE_COVER" />
<action android:name="${applicationId}.widget.UPDATE_POSITION" />
</intent-filter>
<meta-data
......@@ -510,10 +510,10 @@
android:label="@string/widget_name_b" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<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" />
<action android:name="${applicationId}.widget.INIT" />
<action android:name="${applicationId}.widget.UPDATE" />
<action android:name="${applicationId}.widget.UPDATE_COVER" />
<action android:name="${applicationId}.widget.UPDATE_POSITION" />
</intent-filter>
<meta-data
......@@ -525,7 +525,7 @@
android:process=":main">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="_PACKAGENAME_.remote.PlayPause" />
<action android:name="${applicationId}.remote.PlayPause" />
</intent-filter>
</receiver>
......
......@@ -165,17 +165,10 @@ android {
//Custom APK name
variant.outputs.each { output ->
def outputName = "VLC-Android-"
if (!variant.productFlavors.get(0).name.equals("vanilla"))
if (variant.productFlavors.get(0).name != "vanilla")
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
output.processManifest.doLast{
def manifestOutFile = output.processManifest.manifestOutputFile
def newFileContents = manifestOutFile.getText('UTF-8').replace("_PACKAGENAME_", variant.applicationId)
manifestOutFile.write(newFileContents, 'UTF-8')
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment