Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents uploading api-tester to maven #445

Merged
merged 1 commit into from Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 34 additions & 1 deletion api-tester/build.gradle
@@ -1,4 +1,37 @@
apply from: "$rootProject.projectDir/library.gradle"
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion compileVersion
buildToolsVersion buildToolsVersion

defaultConfig {
minSdkVersion minVersion
targetSdkVersion compileVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/java'
test.java.srcDirs += 'src/test/java'
}
testOptions {
unitTests.includeAndroidResources = true
unitTests.all {
maxHeapSize = "1024m"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these be defined as a variable here? Looks like it's currently repeated in several places.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. We can create a base .gradle for api-tester, integration-tests, purchase-tester and purchase-tester-java!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge this and open another PR for that change

targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
implementation project(path: ':public')
Expand Down
1 change: 1 addition & 0 deletions build.gradle
@@ -1,6 +1,7 @@
buildscript {
ext.kotlinVersion = "1.4.10"
ext.compileVersion = 28
ext.buildToolsVersion = "30.0.3"
ext.minVersion = 14
ext.billingVersion = "4.0.0"
ext.lifecycleVersion = "2.3.0-rc01"
Expand Down
2 changes: 1 addition & 1 deletion library.gradle
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion compileVersion
buildToolsVersion "30.0.3"
buildToolsVersion buildToolsVersion

defaultConfig {
minSdkVersion minVersion
Expand Down