Skip to content

Commit

Permalink
Fix test app issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed May 1, 2023
1 parent 4559799 commit f9b9480
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ repositories {

``` groovy
dependencies {
compile "ch.poole:OpeningHoursFragment:0.13.2"
compile "ch.poole:OpeningHoursFragment:0.13.3"
}
```
166 changes: 83 additions & 83 deletions testapp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,83 +1,83 @@
// Top-level build file where you can add
// configuration options common to all sub-projects/modules.

// Project level build file starts here
apply plugin: 'eclipse'
apply plugin: 'com.android.application'


apply from: 'https://raw.githubusercontent.com/simonpoole/gradle-tasks/master/eclipse-android-3'
// apply from: '../../gradle-tasks/eclipse-android-3-lib'

allprojects {
repositories {
mavenCentral()
maven { url "https://maven.google.com" }
jcenter()
mavenLocal()
}
}

configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 100
versionName "1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildTypes {
debug {
testCoverageEnabled true
}
}

lintOptions {
// checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

ext {
androidxVersion = "1.0.0"
}

dependencies {
implementation project(path: ':lib', configuration: 'default')

implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "androidx.preference:preference:1.0.0"
implementation "com.google.android.material:material:1.0.0"
implementation "androidx.annotation:annotation:1.0.0"
implementation "androidx.core:core:1.0.0"
implementation 'cn.carbswang.android:NumberPickerView:1.2.0'
implementation "ch.poole:OpeningHoursParser:0.26.0"
implementation "ch.poole.android:rangebar:0.1.6"
implementation 'cn.carbswang.android:NumberPickerView:1.2.0'
implementation "com.google.code.gson:gson:2.8.5"

// Instrumentation tests
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation "org.hamcrest:hamcrest-library:1.3"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'

// androidTestCompile "com.android.support.test.uiautomator:uiautomator-v18:2.1.2"
}
// Top-level build file where you can add
// configuration options common to all sub-projects/modules.

// Project level build file starts here
apply plugin: 'eclipse'
apply plugin: 'com.android.application'


apply from: 'https://raw.githubusercontent.com/simonpoole/gradle-tasks/master/eclipse-android-3'
// apply from: '../../gradle-tasks/eclipse-android-3-lib'

allprojects {
repositories {
mavenCentral()
maven { url "https://maven.google.com" }
jcenter()
mavenLocal()
}
}

configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 100
versionName "1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildTypes {
debug {
testCoverageEnabled true
}
}

lintOptions {
// checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

ext {
androidxVersion = "1.0.0"
}

dependencies {
implementation project(':lib')

implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "androidx.preference:preference:1.0.0"
implementation "com.google.android.material:material:1.0.0"
implementation "androidx.annotation:annotation:1.0.0"
implementation "androidx.core:core:1.0.0"
implementation 'cn.carbswang.android:NumberPickerView:1.2.0'
implementation "ch.poole:OpeningHoursParser:0.26.0"
implementation "ch.poole.android:rangebar:0.1.6"
implementation 'cn.carbswang.android:NumberPickerView:1.2.0'
implementation "com.google.code.gson:gson:2.8.5"

// Instrumentation tests
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation "org.hamcrest:hamcrest-library:1.3"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'

// androidTestCompile "com.android.support.test.uiautomator:uiautomator-v18:2.1.2"
}

0 comments on commit f9b9480

Please sign in to comment.