Skip to content

Commit

Permalink
Merge pull request #1 from ZhonganTechQA/master
Browse files Browse the repository at this point in the history
pull
  • Loading branch information
aaWen2859 authored Jun 13, 2019
2 parents e9f0a23 + 5475ce4 commit 50bbc47
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: android
sudo: true
android:
components:
- tools
- platform-tools
- tools
- build-tools-27.0.3
- android-27
- extra-android-m2repository
- extra-android-support
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-27"
script:
- ./gradlew clean assembleAndroidTest assembleDebug
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [![Build Status](https://travis-ci.com/ZhonganTechQA/za-Farmer.svg?branch=master)](https://travis-ci.com/ZhonganTechQA/za-Farmer)
# za-Farmer

za-Farmer 是一个基于Uiautomator2.0 的命令行自动化工具,你可以通过命令行驱动Uiautomator进行Android自动化测试。
Expand Down
30 changes: 8 additions & 22 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
apply plugin: 'com.android.application'// 表示是一个应用程序的模块,可独立运行
//apply plugin:'com.android.library' //表示是一个依赖库,不能独立运行
apply plugin: 'com.android.application'
//apply plugin:'com.android.library'

android {
compileSdkVersion 27 //制定项目的编译版本 安卓8.1
compileSdkVersion 27
defaultConfig {
applicationId "com.smart.farmer" //指定包名
minSdkVersion 18 //指定最低的兼容的Android系统版本 安卓4.3
targetSdkVersion 27 //指定你的目标版本,表示你在该Android系统版本已经做过充分的测试
versionCode 1 //版本号
versionName "1.5" //版本名称
applicationId "com.smart.farmer"
minSdkVersion 18
targetSdkVersion 27
versionCode 1
versionName "1.5"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

signingConfigs {
config {
keyAlias 'key0'
keyPassword '123456'
storeFile file('../farmer.key')
storePassword '123456'
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'


implementation 'com.android.support.test:runner:1.0.2'
implementation 'com.android.support:appcompat-v7:27.1.1'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'

Expand Down

0 comments on commit 50bbc47

Please sign in to comment.