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
4 changes: 2 additions & 2 deletions Integreat/Integreat.Droid/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="tuerantuer.app.integreat" android:installLocation="auto" android:versionCode="55614" android:versionName="2.4.0">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="26" />
<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -23,4 +23,4 @@
</intent-filter>
</receiver>
</application>
</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 restore Integreat.sln'
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:Configuration=Release /p:AndroidSdkDirectory="/opt/android-sdk/" /target:SignAndroidPackage'
}
}
}
post {
always {
archiveArtifacts artifacts: 'Integreat/Integreat.Droid/bin/Release/*.apk', fingerprint: true
}
}
}