Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Make android app compile on jenkins build server #425

Closed
wants to merge 12 commits into from
2 changes: 1 addition & 1 deletion Integreat/Integreat.Droid/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="tuerantuer.app.integreat" android:installLocation="auto" android:versionCode="55609" android:versionName="2.2.7">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="26" />
<application android:label="Integreat" android:theme="@style/MyTheme" android:icon="@mipmap/icon" android:largeHeap="true" />
</manifest>
</manifest>
3 changes: 1 addition & 2 deletions Integreat/Integreat.Droid/Resources/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
</style>

<style name="SplashTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen</item>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splash screen is not compatible for some reason: bamlab/generator-rn-toolbox#144

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can add this directly in code 🤔

</style>
</resources>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
18 changes: 18 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pipeline {
agent any

stages {
stage('Build') {
steps {
sh 'mkdir packages && cd packages && nuget install ../Integreat/Integreat.Droid/packages.config'
sh 'msbuild Integreat.sln /p:AndroidSdkDirectory="/opt/android-sdk/" || true'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First execution fails with SIGSEV

sh 'msbuild Integreat/Integreat.Droid/Integreat.Droid.csproj /p:AndroidSdkDirectory="/opt/android-sdk/" /target:SignAndroidPackage'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SignAndroidPackage target is not available in Localisation project so we only build the Droid project.

}
}
}
post {
always {
archiveArtifacts artifacts: 'Integreat/Integreat.Droid/bin/Debug/*.apk', fingerprint: true
}
}
}