Android-継続的インテグレーション。 パート2

最初の部分は、なぜここでこれがすべて必要であるかを示します

内容




この投稿は、Mavenの基本にすでに精通している読者を対象としており、記事の過程で、Maven自体の一般的な問題ではなく、特定のポイント、特にAndroidに重点が置かれます。 以前にMavenを使用したことがない場合は、まずはこちらこちらをご覧ください

また、ツールのインストールと基本構成については考慮しませんJDK, Android SDK, Maven 、およびIntelliJ IDEAがインストールされ、動作している必要があります。 JAVA_HOME, M2, M2_HOME 、およびANDROID_HOME環境変数を適宜設定する必要がありJAVA_HOME, M2, M2_HOME 。 また、便宜上、 %ANDROID_HOME%/toolsおよび%ANDROID_HOME%/platform-toolsディレクトリをPath追加することをお勧めします。

最初に全体像を見てから、個々の詳細を理解する方が常に便利です。 したがって、githubからプロジェクトテンプレートを選択することをお勧めします。 すべてのさらなるナレーションは、彼の例で行われます。


準備する


POMファイル自体の検討を開始する前に、まずプロジェクト構造を整理し、IntelliJ IDEAで動作するように構成します。 これにより、標準のIDEツールをさらに使用してアプリケーションを起動およびデバッグし、実際にすべての利点を十分に活用することができます。 IDEAにはデフォルトでMavenおよびAndroid用の組み込みプラグインがあり、セットアップはほとんど問題を引き起こしません。 プラグインのMavenパネルを開き、対応するルートPOMファイルを選択するだけです。 IDEAはそこからのデータに基づいて、少し手動で調整する必要があるプロジェクトファイルを作成します。



プロジェクトは4つのモジュールで構成されています。

根
  | ----アプリ
  |  | ---- src
  |  | ----テスト
  |  | ---- JUnit
  |  | ---- Robolectric
  |
  | ---- Lib
  |  | ---- src
  |  | ----テスト
  |  | ---- JUnit
  |  | ---- Robolectric
  |
  | ----テスト
       | ---- src
            | ----計装
            | ----ロボティウム 



テストを含む個別のモジュールに加えて、プロジェクト内の各モジュールには、単体テスト(JUnitまたはRobolectric )が保存される testフォルダーがあります。

メイヴン


私にとって、mavenを試そうとする動機の1つは、Antと比較してXMLサイズが小さく、その結果、読みやすさとサポートが向上したことです。 ただし、通常は、チュートリアルではコンパクトに見えますが、実際には認識できないサイズになります。 そのため、今回、スクリプトはすべてのウィッシュリストで大きくなりすぎ、アントフに劣らずなりました。 しかし、これにもかかわらず、私の主観的な意見では、それらを読むことはAntよりはるかに簡単です。 さらに、スクリプトのようなAntとは異なり、mavenは宣言的なパラダイムを提供します。 つまり 「どのように」正確に何かを取得したいのではなく、「何を」正確に、そしてそれがどのように受け取られるかを説明します。

また、実際には、依存関係管理オプションはかなり具体的なプラスであることが判明しましたが、Antでは原則としてIvyを使用しても解決可能です。 さて、有名なアリの1人が言ったように、アリに対するもう1つの突っ込み:「XMLを使用したプログラミングは一般に奇妙なアイデアです」=)

モジュールのPOMファイルを見てみましょう


プロジェクトのルートモジュール。 他のすべてのモジュールと、すべてのモジュールに共通の構成要素が含まれています。 そのようなモジュールのデフォルトのパッケージングタイプ

 <packaging>pom</packaging> 

さらに、バグトラッカーのアドレス、リポジトリのアドレス、プロジェクトの説明など、さまざまな些細なことが発表されています。

次に、プロパティのブロックがあります。

  <properties> <project.version.name.number>1.0.0</project.version.name.number> <project.version.code>1</project.version.code> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.emulator.name><!-- TODO emulator name --></project.emulator.name> <project.version.name>${project.version.name.number}-${project.version.name.qualifier}</project.version.name> <project.verbosity>true</project.verbosity> </properties> 




次に、依存モジュールを宣言するブロック:App、Test、およびLib。 次に、プロファイル宣言セクション。

ビルドプロファイル

前の部分で述べたように、アプリケーションはproduction, testdevelopmentいくつかの異なる構成で構築できます。 このプロセスのプロファイルと管理。 各プロファイルでは、さまざまなプロパティ、プラグイン設定、およびその他のビルドパラメーターの値を重複させることができます。 プロジェクトをコンパイルするとき、アクティブなプロファイルに応じて、適切なアセンブリ設定が取得され、アプリケーションで使用されます。 たとえば、この方法でリソース処理を使用すると、サーバーリンクを変更できます。これは、 test構成とtest構成で異なる場合があります(詳細は以下を参照)。

Mavenプラグインを使用して、IDEAで必要なプロファイルをアクティブ化できます。



または、コンソールまたはビルドサーバーからPOMを起動する場合、追加のパラメーターを指定することでアクティブなプロファイルの値を渡すことができます。 たとえば、次のコマンドを使用して、コマンドラインからアプリケーションのproductionアセンブリをアセンブルできます。

mvn install -P production

developmentプロファイルはデフォルトでアクティブになっているため、さらに何も指定しないと、dev構成が構築されます。

サーバーまたはデータベースへの接続の設定などの特定のアプリケーション設定に加えて、プロファイルはapkファイルが最適化および署名されるかどうか、デバッグモードが有効かどうか、およびどの修飾子が最終成果物を受け取るかを決定します。

testおよびdevelopmentプロファイルはサイズが小さく、その内容はアプリケーション設定(サーバーに接続するためのパラメーター)のみを指定します。 productionプロファイルの定義は、サイズがわずかに大きいです。 これには、証明書を使用しアプリケーションに署名するプロセスの設定が含まれます。

  <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> <archiveDirectory/> <includes> <include>${project.build.directory}/*.apk</include> </includes> <keystore>${project.basedir}/keystore</keystore> <!-- TODO add keystore to project --> <storepass><!-- TODO --></storepass> <keypass><!-- TODO --></keypass> <alias><!-- TODO --></alias> <removeExistingSignatures>true</removeExistingSignatures> <verbose>true</verbose> </configuration> </execution> </executions> </plugin> 


maven-jarsigner-plugin設定は、パッケージが署名されるポイント、キーストアへのパス、およびそのパラメーターを示します。 ところで、スクリプトをデバッグするには、 -Xオプションを使用して実行するのが非常に便利です(例: mvn install -X 。 同時に、mavenは大量のデバッグ情報を提供し、問題に対処できることを分析します。

次に、 android-maven-plugin 'eで、 productionアセンブリのデバッグモードが無効になります。 最後のmaven-compiler-pluginは、 productionバージョンコードの最適化が含まれます。

POMのビルドセクションで、結果のapkファイルの名前が設定され、さまざまなプラグインが設定されます。

プラグイン

次に、プラグインの設定に進みます。 リソース処理プラグインmaven-compiler-pluginにJavaのバージョン6を使用するようにmaven-compiler-pluginし、 android-maven-pluginをセットアップし、 maven-idea-pluginをセットアップしmaven-idea-plugin

maven-idea-plugin使用すると、プロジェクトの依存関係のドキュメントとソースをダウンロードできます。これにより、プラットフォームまたはライブラリのソースコードを確認したり、javadoc(Ctrl + Q)にすばやく触れることができます。 些細なことですが、素晴らしい! =)

Android Mavenプラグイン

Androidプラグインのセットアップをさらに詳しく検討してみましょう。 プラグインは、セクションの他のすべてのMavenプラグインと同じ方法で構成されます //.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
  //. 

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像

//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像

//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像

//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像

//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像
//.

API .
<sdk> <platform>14</platform> </sdk>


, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>

: , . .. TeamCity "" , -no-window .
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>

.
<undeployBeforeDeploy>true</undeployBeforeDeploy>

apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>

.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>


POM- App, Test Lib , .

App
. - APK . maven-central, , , .

maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin 'a, - Maven Android SDK Deployer , .

. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>

apklib - Android , . IntelliJ IDEA apklib IDEA- ~ .

, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .



, maven , , , . JetBrains .

.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>


.

Resource filtering
, ( application.properties /assets , XML- /res java /src ), ${property.name} , Maven' POM-. , , . , .

. android-maven-plugin versionName versionCode , . , , , AndroidManifest.xml . resource filtering. .

, Root , APKLIB . Root App , .

/asstets .
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>

, (. Resource filtering).

, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>

Lib
APKLIB . jar . . java-, jar, (, , ..), .. Android Library Project , APKLIB .

, .

Test
, . apk . . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>


.. -, , , . Maven . pom- AndroidManifest.xml . maven-release-plugin - (ant- ).

, , , - =)

version.properties . ant-target POM- .

test-scopes . Android Testing Framework @SmallTest @MediumTest @LargeTest , instrumentation- . .. integration-, , , TeamCity , . , development @SmallTest ', production . , , maven-android-plugin scope , .. small , medium , large , small medium. . testSize

obfuscating ProGuard


, , Android Maven'

Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'

UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

画像

Source: https://habr.com/ru/post/J152279/


All Articles