-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba16441
commit 3f74ba9
Showing
75 changed files
with
21,417 additions
and
619 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
plugins { | ||
id("com.android.application") version ProjectConsts.ANDROID_GRADLE_PLUGIN_VERSION apply false | ||
id("com.android.library") version ProjectConsts.ANDROID_GRADLE_PLUGIN_VERSION apply false | ||
id("org.jetbrains.kotlin.android") version ProjectConsts.KOTLIN_VERSION apply false | ||
id("com.google.gms.google-services") version ProjectConsts.GMS_GRADLE_PLUGIN_VERSION apply false | ||
id("io.codearte.nexus-staging") version "0.30.0" | ||
id("org.sonarqube") version "4.2.1.3168" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
object ProjectConsts { | ||
const val COMPILE_SDK = 34 | ||
|
||
const val KOTLIN_VERSION = "1.7.21" | ||
const val KOTLIN_COROUTINES_VERSION = "1.6.4" | ||
|
||
const val ANDROID_LINT_VERSION = "30.1.2" | ||
|
||
const val ANDROID_GRADLE_PLUGIN_VERSION = "8.0.2" | ||
const val GMS_GRADLE_PLUGIN_VERSION = "4.3.14" | ||
} | ||
|
||
object SDKConsts { | ||
const val VERSION = "1.20.0" | ||
const val API_LEVEL = 61 | ||
const val MESSAGING_API_LEVEL = 12 | ||
|
||
const val MIN_SDK = 15 | ||
const val TARGET_SDK = 34 | ||
const val R_PREFIX = "com_batchsdk_" | ||
const val NAMESPACE = "com.batch.android" | ||
const val TEST_NAMESPACE = "com.batch.android.test" | ||
const val MAVEN_GROUP_ID = "com.batch.android" | ||
const val MAVEN_ARTIFACT = "batch-sdk" | ||
const val MAVEN_ARTIFACT_VERSION = VERSION | ||
|
||
// SDK and Sample don't share the same deps as the SDK | ||
// usually wants lower versions for compatibility. | ||
object DependenciesVersions { | ||
const val ANDROIDX = "1.0.0" | ||
const val PLAY_SERVICES = "11.8.0" | ||
} | ||
} | ||
|
||
object SampleConsts { | ||
object DependenciesVersions { | ||
const val ANDROIDX = "1.1.0" | ||
const val PLAY_SERVICES = "16.0.0" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Wed Jul 12 10:10:59 CEST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
plugins { | ||
id("java-library") | ||
} | ||
|
||
dependencies { | ||
val lintVersion = ProjectConsts.ANDROID_LINT_VERSION | ||
|
||
compileOnly("com.android.tools.lint:lint-api:$lintVersion") | ||
compileOnly("com.android.tools.lint:lint-checks:$lintVersion") | ||
|
||
testImplementation("junit:junit:4.12") | ||
testImplementation("com.android.tools.lint:lint:$lintVersion") | ||
testImplementation("com.android.tools.lint:lint-tests:$lintVersion") | ||
testImplementation("com.android.tools:testutils:$lintVersion") | ||
} | ||
|
||
|
||
tasks.withType<Jar> { | ||
manifest { | ||
attributes["Lint-Registry-v2"] = "com.batch.android.lint.BatchIssueRegistry" | ||
} | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
id("java-library") | ||
} | ||
|
||
dependencies { | ||
implementation("com.squareup:javapoet:1.12.1") | ||
implementation("androidx.annotation:annotation:1.5.0") | ||
testImplementation("com.google.guava:guava:29.0-android") | ||
testImplementation("com.google.truth:truth:1.0.1") | ||
//testImplementation("com.google.truth:truth-java8-extension:1.0.1") | ||
testImplementation("com.google.testing.compile:compile-testing:0.18") | ||
testImplementation("com.google.android:android:4.1.1.4") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Sources/sdk-processor/src/main/resources/META-INF/gradle/incremental.annotation.processors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.batch.android.processor.DIProcessor, isolating |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
plugins { | ||
id("com.android.library") | ||
} | ||
|
||
android { | ||
namespace = "sun.misc" | ||
|
||
compileSdk = ProjectConsts.COMPILE_SDK | ||
|
||
defaultConfig { | ||
minSdk = SDKConsts.MIN_SDK | ||
targetSdk = SDKConsts.TARGET_SDK | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt")) | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<manifest package="sun.misc" /> | ||
<manifest /> |
Oops, something went wrong.