mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Added jarsigner plugin to pom
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest package="de.danoeh.antennapod"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:versionCode="24"
|
package="de.danoeh.antennapod"
|
||||||
android:versionName="0.9.6.3" xmlns:android="http://schemas.android.com/apk/res/android">
|
android:versionCode="34"
|
||||||
|
android:versionName="0.9.6.3" >
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
@ -25,7 +26,6 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:name="de.danoeh.antennapod.PodcastApp"
|
android:name="de.danoeh.antennapod.PodcastApp"
|
||||||
android:debuggable="true"
|
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:logo="@drawable/ic_launcher"
|
android:logo="@drawable/ic_launcher"
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activity.MainActivity"
|
android:name=".activity.MainActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:label="@string/app_name">
|
android:label="@string/app_name" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
@ -74,7 +74,7 @@
|
|||||||
android:name=".activity.AudioplayerActivity"
|
android:name=".activity.AudioplayerActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:screenOrientation="portrait"/>
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".service.download.DownloadService"
|
android:name=".service.download.DownloadService"
|
||||||
@ -94,7 +94,9 @@
|
|||||||
android:label="@string/download_log_label" >
|
android:label="@string/download_log_label" >
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<receiver android:name=".receiver.MediaButtonReceiver" android:exported="true">
|
<receiver
|
||||||
|
android:name=".receiver.MediaButtonReceiver"
|
||||||
|
android:exported="true" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MEDIA_BUTTON" />
|
<action android:name="android.intent.action.MEDIA_BUTTON" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -157,7 +159,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.AboutActivity"
|
android:name=".activity.AboutActivity"
|
||||||
android:label="@string/about_pref">
|
android:label="@string/about_pref" >
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.OpmlImportActivity"
|
android:name=".activity.OpmlImportActivity"
|
||||||
@ -208,7 +210,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MiroGuideCategoryActivity"
|
android:name=".activity.MiroGuideCategoryActivity"
|
||||||
android:configChanges="keyboardHidden|orientation">
|
android:configChanges="keyboardHidden|orientation" >
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MiroGuideChannelViewActivity"
|
android:name=".activity.MiroGuideChannelViewActivity"
|
||||||
@ -218,10 +220,14 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activity.VideoplayerActivity"
|
android:name=".activity.VideoplayerActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:screenOrientation="landscape">
|
android:screenOrientation="landscape" >
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:label="@string/playback_history_label" android:name=".activity.PlaybackHistoryActivity"></activity>
|
<activity
|
||||||
<activity android:name=".activity.DirectoryChooserActivity" android:label="@string/choose_data_directory"></activity>
|
android:name=".activity.PlaybackHistoryActivity"
|
||||||
|
android:label="@string/playback_history_label" />
|
||||||
|
<activity
|
||||||
|
android:name=".activity.DirectoryChooserActivity"
|
||||||
|
android:label="@string/choose_data_directory" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
162
pom.xml
162
pom.xml
@ -59,10 +59,10 @@
|
|||||||
<version>4.1.1.4</version>
|
<version>4.1.1.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-io</groupId>
|
<groupId>commons-io</groupId>
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
@ -81,17 +81,169 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
<version>3.3.0</version>
|
<version>3.5.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sdk>
|
<sdk>
|
||||||
<path>${env.ANDROID_HOME}</path>
|
<path>${env.ANDROID_HOME}</path>
|
||||||
<platform>17</platform>
|
<platform>17</platform>
|
||||||
</sdk>
|
</sdk>
|
||||||
|
<manifest>
|
||||||
|
<debuggable>true</debuggable>
|
||||||
|
</manifest>
|
||||||
</configuration>
|
</configuration>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>manifestUpdate</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>manifest-update</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>alignApk</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>zipalign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>development</id>
|
||||||
|
<!-- using this since activeByDefault does not work well with multiple
|
||||||
|
profiles -->
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>environment</name>
|
||||||
|
<value>!production</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<deployment.stage>In Development</deployment.stage>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>production</id>
|
||||||
|
<properties>
|
||||||
|
<deployment.stage>In Production</deployment.stage>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<!-- via this activation the profile is automatically used when the release
|
||||||
|
is done with the maven release plugin -->
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>performRelease</name>
|
||||||
|
<value>true</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jarsigner-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>signing</id>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
<goal>verify</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
<inherited>true</inherited>
|
||||||
|
<configuration>
|
||||||
|
<removeExistingSignatures>true</removeExistingSignatures>
|
||||||
|
<archiveDirectory />
|
||||||
|
<includes>
|
||||||
|
<include>${project.build.directory}/${project.artifactId}-${project.version}.apk</include>
|
||||||
|
</includes>
|
||||||
|
<keystore>${sign.keystore}</keystore>
|
||||||
|
<alias>${sign.alias}</alias>
|
||||||
|
<storepass>${sign.storepass}</storepass>
|
||||||
|
<keypass>${sign.keypass}</keypass>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- the signed apk then needs to be zipaligned and we activate proguard
|
||||||
|
and we run the manifest update -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||||
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
|
<inherited>true</inherited>
|
||||||
|
<configuration>
|
||||||
|
<sign>
|
||||||
|
<debug>false</debug>
|
||||||
|
</sign>
|
||||||
|
<zipalign>
|
||||||
|
<skip>false</skip>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<inputApk>${project.build.directory}/${project.artifactId}-${project.version}.apk</inputApk>
|
||||||
|
<outputApk>${project.build.directory}/${project.artifactId}-${project.version}-signed-aligned.apk
|
||||||
|
</outputApk>
|
||||||
|
</zipalign>
|
||||||
|
<manifest>
|
||||||
|
<debuggable>false</debuggable>
|
||||||
|
<versionCodeAutoIncrement>true</versionCodeAutoIncrement>
|
||||||
|
</manifest>
|
||||||
|
<proguard>
|
||||||
|
<skip>true</skip>
|
||||||
|
</proguard>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>manifestUpdate</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>manifest-update</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>alignApk</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>zipalign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<artifacts>
|
||||||
|
<artifact>
|
||||||
|
<file>${project.build.directory}/${project.artifactId}-${project.version}-signed-aligned.apk</file>
|
||||||
|
<type>apk</type>
|
||||||
|
<classifier>signed-aligned</classifier>
|
||||||
|
</artifact>
|
||||||
|
<artifact>
|
||||||
|
<file>${project.build.directory}/proguard/mapping.txt</file>
|
||||||
|
<type>map</type>
|
||||||
|
<classifier>release</classifier>
|
||||||
|
</artifact>
|
||||||
|
</artifacts>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-signed-aligned</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>attach-artifact</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user