mirror of
https://github.com/mollyim/osmdroid.git
synced 2025-05-12 23:00:37 +01:00

* Update gradle wrapper to 6.8.3 * Remove incompatible build instructions * Replace deprecated findbugs with spotbugs * Remove jDepend, there is no close approximation replacement * Update left shift to be doLast * Add compileSdkVersion to projects * Update travis configuration to support more recent build tools * #1776 made some progress with the build tech update - dist zip is not hooked up - maven central publishing definitely needs to be redone, from scratch - mil-sym-android was on bintray but that is dead now, so if you attempt to build this branch, you'll check to check out and build that repo * #1776 javadocs are now generated from the aar (although a bit of a hack) * #1776 moves apk signing config to a new file updates 2525 renderer to a version that is on central * #1776 first successful test publish of snapshots and a release run (FOR AAR's ONLY) caveats, dependency declarations in the poms are done by parsing build.gradle files which is super risky considering the massive variations for writing them. exclusions aren't applied yet * #1776 all jar, war components are now published. Found a number of security issues identifed by sonatype lift when publishing thus the many dependency updates. At this point, i think it's good enough for PR and hopefully for some assistance to resolving the on device unit testing stuff that's broken and the one or two unit tests that stopped working and is now commented out. Wiki release procedure document needs to be updated as well * #1776 reverting previous disabled functions that failed for unknown reasons during the upgrades. seems to work ok now though * #1776 removing the old projects from version control, they have been incompatible for nearly 4 years now * #1776 no longer needed since we no longer have any closed source libraries * #1776 removing the quality plugin, none of the operations in there still work with the newer android stuff adding in @hannesa2's github action scripts to ci osmdroid again * #1776 no longer needed submodule reference, updating ci build * #1776 borrowing more from fury, should resolve ci issues * #1776 borrowing more from fury, should resolve ci issues * #1776 borrowing more from fury, should resolve ci issues, got it this time * #1776 removing the checkstyle, qualty plugin was removed Co-authored-by: Al Sutton <al.sutton@alsutton.com>
76 lines
4.1 KiB
YAML
76 lines
4.1 KiB
YAML
language: android
|
|
jdk: openjdk8
|
|
android:
|
|
components:
|
|
- tools
|
|
- platform-tools
|
|
- tools
|
|
|
|
# The BuildTools version used by your project
|
|
- build-tools-29.0.2
|
|
|
|
# The SDK version used to compile your project
|
|
#
|
|
# "addon-google_apis-google-*" is only required when google apis are used
|
|
#
|
|
# Note: Don't add the platforms or addons required for the emulators here.
|
|
# Those are automatically downloaded in "before_install" on a per worker basis.
|
|
#
|
|
|
|
- android-26
|
|
#- addon-google_apis-google-23
|
|
|
|
# Additional components - currently not required
|
|
#- extra-google-m2repository #contains constraintlayout
|
|
#- extra-android-m2repository
|
|
#- extra-google-google_play_services
|
|
|
|
sudo: required
|
|
|
|
# fun fact, travis doesn't really support multiple AVDs running currently for a single build (tried it, build timed out constantly while starting up the AVDs)
|
|
# thus we're using a build matrix (which makes more sense anyhow)
|
|
env:
|
|
global:
|
|
#minutes (2 minutes by default), prevents CommandShellUnresponsiveExceptions
|
|
- ADB_INSTALL_TIMEOUT=14
|
|
|
|
# setup of emulators this will be tested on
|
|
#
|
|
# API: Desired API level of the emulator
|
|
# ANDROID_ABI: Currently either "armeabi" (only needed for API8) or "armeabi-v7a"
|
|
# ANDROID_TAG: Either "default" or "google_apis" if play services are used
|
|
#
|
|
# Below list was generated in June 2018. To get an up to date list of available options run "sdkmanager --list"
|
|
#
|
|
# Note: Currently (June 2018) there are no arm images for API > 25 provided by google.
|
|
# This is unlikely to change in the future due to the new emulator supporting
|
|
# (and requiring!) hardware acceleration for x86.
|
|
# Unfortunately Travis has no solution yet for providing KVM on the worker machines
|
|
# so running API25 and up emulators is not possible right now.
|
|
|
|
matrix:
|
|
#- API=10 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
#- API=10 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
#- API=14 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default # emulator consistently times out
|
|
#- API=15 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default # https://github.com/osmdroid/osmdroid/issues/1066
|
|
#- API=15 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
- API=16 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
- API=17 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
#- API=17 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
#- API=18 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
#- API=18 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
- API=19 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
- API=21 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default
|
|
#- API=21 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
#- API=22 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default # com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_DEXOPT: Package couldn't be installed in /data/app/org.osmdroid-2: scanPackageLI
|
|
#- API=22 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # currently no google apis needed
|
|
#- API=23 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default # sdkmanager --list reports this to be available, but image is not found during build
|
|
#- API=23 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # Unable to install /home/travis/build/cbalster/osmdroid/OpenStreetMapViewer/build/outputs/apk/OpenStreetMapViewer-6.0.2-SNAPSHOT-debug.apk com.android.ddmlib.InstallException: Failed to establish session
|
|
#- API=24 ANDROID_ABI=armeabi-v7a ANDROID_TAG=default # "The command "adb shell ls /" failed and exited with 1 during." see line 108
|
|
#- API=24 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # emulator consistently times out
|
|
#- API=25 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis # no addons available, so can't be used
|
|
|
|
script:
|
|
# run build while emulator is starting up
|
|
- ./gradlew -version
|
|
- ./gradlew clean install -Pprofile=ci
|