123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- /*
- * The MIT License (MIT)
- * Copyright (c) 2015 xiaocong@gmail.com
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
- * OR OTHER DEALINGS IN THE SOFTWARE.
- */
- buildscript {
- repositories {
- mavenCentral()
- }
- }
- plugins {
- id 'com.gladed.androidgitversion' version '0.4.14'
- }
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 34
- // version code history
- // 1: original version
- // 2: update all dependencies to latest
- // 6: input method, battery,rotation monitor
- androidGitVersion {
- baseCode 1
- }
- defaultConfig {
- applicationId "com.github.uiautomator"
- minSdkVersion 19
- targetSdkVersion 32
- versionCode androidGitVersion.code()
- versionName androidGitVersion.name()
- }
- signingConfigs {
- release {
- storeFile file("../release.keystore")
- storePassword "uiautomator-release-2015"
- keyAlias "uiautomator"
- keyPassword "uiautomator"
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- }
- }
- android {
- lintOptions {
- abortOnError false
- }
- }
- defaultConfig {
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- packagingOptions {
- exclude 'LICENSE.txt'
- exclude 'META-INF/LICENSE'
- exclude 'META-INF/NOTICE'
- }
- // fix try-with-resource warning
- // ref: https://stackoverflow.com/questions/40408628/try-with-resources-requires-api-level-19-okhttp
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- // server
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'org.nanohttpd:nanohttpd:2.3.1'
- implementation 'com.squareup.okhttp3:okhttp:3.11.0'
- implementation 'commons-cli:commons-cli:1.3.1'
- // test
- androidTestImplementation 'androidx.test:runner:1.3.0'
- androidTestImplementation 'androidx.test:rules:1.3.0'
- androidTestImplementation 'androidx.core:core:1.3.0'
- androidTestImplementation 'androidx.annotation:annotation:1.1.0'
- androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.3.0'
- androidTestImplementation 'com.github.briandilley.jsonrpc4j:jsonrpc4j:1.5.0'
- androidTestImplementation 'com.fasterxml.jackson.core:jackson-core:2.5.3'
- androidTestImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.5.3'
- androidTestImplementation 'com.fasterxml.jackson.core:jackson-databind:2.5.3'
- implementation project(':permission')
- androidTestImplementation 'junit:junit:4.12'
- androidTestImplementation 'junit:junit:4.12'
- }
- repositories {
- mavenCentral()
- }
|