mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-25 15:19:51 +07:00
Travis update, using 'android:components' instead of 'install' for base installations
This commit is contained in:
20
.travis.yml
20
.travis.yml
@ -1,17 +1,25 @@
|
||||
language: android
|
||||
|
||||
android:
|
||||
components:
|
||||
# Uncomment the lines below if you want to
|
||||
# use the latest revision of Android SDK Tools
|
||||
# - tools
|
||||
# - platform-tools
|
||||
|
||||
# The BuildTools version used by your project
|
||||
- build-tools-28.0.3
|
||||
|
||||
# The SDK version used to compile your project
|
||||
- android-28
|
||||
|
||||
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
before_install:
|
||||
- chmod +x gradlew
|
||||
|
||||
install:
|
||||
- echo yes | sdkmanager "tools" &>/dev/null
|
||||
- echo yes | sdkmanager "platform-tools" &>/dev/null
|
||||
- echo yes | sdkmanager "build-tools;28.0.3" &>/dev/null
|
||||
- echo yes | sdkmanager "platforms;android-26" &>/dev/null
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
|
@ -1,6 +1,6 @@
|
||||
android {
|
||||
buildToolsVersion "28.0.3"
|
||||
compileSdkVersion 26
|
||||
compileSdkVersion 28
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
@ -20,7 +20,7 @@ android {
|
||||
defaultConfig {
|
||||
applicationId "com.unciv.game"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 26
|
||||
targetSdkVersion 28
|
||||
versionCode 172
|
||||
versionName "2.10.9"
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ class TileInfoTable(private val worldScreen: WorldScreen) : Table() {
|
||||
fun getStatsTable(tile: TileInfo):Table{
|
||||
val table=Table()
|
||||
table.pad(10f)
|
||||
table.defaults().pad(2f)
|
||||
|
||||
for (entry in tile.getTileStats(worldScreen.civInfo).toHashMap().filterNot { it.value == 0f }) {
|
||||
table.add(ImageGetter.getStatIcon(entry.key.toString())).size(20f).align(Align.right)
|
||||
|
Reference in New Issue
Block a user