# HG changeset patch # User Carl Byington # Date 1541639590 28800 # Node ID 7492d2cb7b75b1041b8a75290e575716f07071fb # Parent f65d8bb11eb090106c68ae1801e9104639198e41 update to latest toolchain, gradle 4.10.2 diff -r f65d8bb11eb0 -r 7492d2cb7b75 Makefile --- a/Makefile Mon Mar 21 09:50:22 2016 -0700 +++ b/Makefile Wed Nov 07 17:13:10 2018 -0800 @@ -28,8 +28,8 @@ rm -rf app/build/* echo -e "$(version)" >app/src/main/res/values/version.xml cat app/src/main/res/values/version.xml - ./gradlew $(task) - mv app/build/outputs/apk/app-arm-$(style).apk $(apk) + ANDROID_HOME=/home/carl/Android/Sdk ANDROID_NDK_HOME=/home/carl/Android/Sdk/ndk-bundle ./gradlew $(task) + mv app/build/outputs/apk/arm/$(style)/app-arm-$(style).apk $(apk) ls -al app/build/outputs/apk prep: diff -r f65d8bb11eb0 -r 7492d2cb7b75 app/build.gradle --- a/app/build.gradle Mon Mar 21 09:50:22 2016 -0700 +++ b/app/build.gradle Wed Nov 07 17:13:10 2018 -0800 @@ -19,70 +19,71 @@ } -apply plugin: 'com.android.model.application' +apply plugin: 'com.android.application' -model { - android { - compileSdkVersion = 16 - buildToolsVersion = "23.0.2" - buildTypes { - release { - minifyEnabled = false - signingConfig = $("android.signingConfigs.release") - } - debug { - debuggable = true - ndk { - debuggable = true - } - } - } - productFlavors { - create("arm") { - ndk.abiFilters.add("armeabi") - } - create("x86") { - ndk.abiFilters.add("x86") - } - } - ndk { - moduleName = "com_google_ase_Exec" - cppFlags.add("-Werror") - ldLibs.add("log") - } - sources { - main { - jni { - source { - srcDir "Exec" - } - } - } - } - defaultConfig.with { - applicationId = "com.five_ten_sg.connectbot" - minSdkVersion.apiLevel = 8 - targetSdkVersion.apiLevel = 15 - } - } - - android.signingConfigs { - create("release") { - def console = System.console() - if (console) { - storePassword = new String(console.readPassword("\nkey store password: ")) - keyPassword = new String(console.readPassword("\nkey alias password: ")) - } - else { - def read = System.in.newReader().&readLine - print "\nkey store password" - storePassword = read() - print "\nkey alias password" - keyPassword = read() - } +android { + signingConfigs { + release { + print "\nNo Console\n" + def read = System.in.newReader().&readLine + print "\nkey store password" + storePassword = read() + print "\nkey alias password" + keyPassword = read() + print "\nDone\n" storeFile = file("../510Connectbot.keystore") storeType = "jks" keyAlias = "510Connectbot" } } + compileSdkVersion = 16 + buildTypes { + release { + minifyEnabled = false + signingConfig = signingConfigs.release + ndk { + debuggable = false + abiFilters 'armeabi-v7a' + } + } + debug { + debuggable = true + ndk { + debuggable = true + abiFilters 'armeabi-v7a' + } + } + } + flavorDimensions "arch" + productFlavors { + arm { + dimension "arch" + } + x86 { + dimension "arch" + } + } + sourceSets { + main { + jni { + srcDir "Exec" + } + } + } + + defaultConfig { + applicationId = "com.five_ten_sg.connectbot" + minSdkVersion = 8 + targetSdkVersion = 15 + ndk { + moduleName = "com_google_ase_Exec" + } + } + + externalNativeBuild { + ndkBuild { + path "src/main/jni/Android.mk" + } + } + } diff -r f65d8bb11eb0 -r 7492d2cb7b75 app/src/main/jni/Application.mk --- a/app/src/main/jni/Application.mk Mon Mar 21 09:50:22 2016 -0700 +++ b/app/src/main/jni/Application.mk Wed Nov 07 17:13:10 2018 -0800 @@ -1,2 +1,2 @@ # Build both ARMv5TE and x86-32 machine code. -APP_ABI := armeabi x86 +APP_ABI := armeabi-v7a x86 diff -r f65d8bb11eb0 -r 7492d2cb7b75 app/src/main/res/drawable/btn_close.xml --- a/app/src/main/res/drawable/btn_close.xml Mon Mar 21 09:50:22 2016 -0700 +++ b/app/src/main/res/drawable/btn_close.xml Wed Nov 07 17:13:10 2018 -0800 @@ -17,11 +17,11 @@ + android:drawable="@drawable/btn_close_normal" /> + android:drawable="@drawable/btn_close_pressed" /> + android:drawable="@drawable/btn_close_selected" /> diff -r f65d8bb11eb0 -r 7492d2cb7b75 app/src/main/res/layout/act_console.xml --- a/app/src/main/res/layout/act_console.xml Mon Mar 21 09:50:22 2016 -0700 +++ b/app/src/main/res/layout/act_console.xml Wed Nov 07 17:13:10 2018 -0800 @@ -133,7 +133,7 @@ android:layout_height="wrap_content" android:layout_toRightOf="@+id/button_sym" android:layout_alignParentBottom="true" - android:src="@+drawable/button_input" + android:src="@drawable/button_input" android:contentDescription="@string/image_description_line_input" /> @@ -143,7 +143,7 @@ android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" - android:src="@+drawable/button_keyboard" + android:src="@drawable/button_keyboard" android:contentDescription="@string/image_description_show_keyboard" /> @@ -154,7 +154,7 @@ android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" - android:src="@+drawable/button_ctrl" + android:src="@drawable/button_ctrl" android:contentDescription="@string/image_description_toggle_control_character" /> @@ -165,7 +165,7 @@ android:layout_height="wrap_content" android:layout_toRightOf="@+id/button_ctrl" android:layout_alignParentBottom="true" - android:src="@+drawable/button_esc" + android:src="@drawable/button_esc" android:contentDescription="@string/image_description_send_escape_character" /> @@ -175,8 +175,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_toRightOf="@+id/button_esc" - android:src="@+drawable/button_sym" + android:layout_toRightOf="@+id/button_esc" + android:src="@drawable/button_sym" android:contentDescription="@string/image_description_sym" /> diff -r f65d8bb11eb0 -r 7492d2cb7b75 app/src/main/res/layout/item_host.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/src/main/res/layout/item_host.xml Wed Nov 07 17:13:10 2018 -0800 @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r f65d8bb11eb0 -r 7492d2cb7b75 build.gradle --- a/build.gradle Mon Mar 21 09:50:22 2016 -0700 +++ b/build.gradle Wed Nov 07 17:13:10 2018 -0800 @@ -3,14 +3,16 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle-experimental:0.7.0-alpha3' + classpath 'com.android.tools.build:gradle:3.2.1' } } allprojects { repositories { jcenter() + google() } } diff -r f65d8bb11eb0 -r 7492d2cb7b75 gradle/wrapper/gradle-wrapper.properties --- a/gradle/wrapper/gradle-wrapper.properties Mon Mar 21 09:50:22 2016 -0700 +++ b/gradle/wrapper/gradle-wrapper.properties Wed Nov 07 17:13:10 2018 -0800 @@ -3,4 +3,6 @@ distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +#distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip +