-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
80 changed files
with
922 additions
and
324 deletions.
There are no files selected for viewing
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,91 +1,6 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id("com.android.library") | ||
id("kotlin-android") | ||
id("maven-publish") | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
android { | ||
compileSdk = ConfigData.targetSdkVersion | ||
defaultConfig { | ||
minSdk = ConfigData.minSdkVersion | ||
ndk { | ||
abiFilters.add("armeabi-v7a") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
|
||
buildTypes { | ||
getByName(ConfigData.BuildType.RELEASE) { | ||
isMinifyEnabled = true | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = ConfigData.JAVA_VERSION | ||
targetCompatibility = ConfigData.JAVA_VERSION | ||
isCoreLibraryDesugaringEnabled = true | ||
} | ||
|
||
tasks.withType<Test> { | ||
useJUnitPlatform() | ||
} | ||
|
||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { | ||
kotlinOptions { | ||
jvmTarget = ConfigData.JVM_TARGET | ||
freeCompilerArgs = listOf( | ||
"-Xstring-concat=inline" | ||
) | ||
} | ||
} | ||
|
||
testOptions { | ||
unitTests { | ||
isIncludeAndroidResources = true | ||
} | ||
} | ||
namespace = "de.tillhub.printengine" | ||
} | ||
|
||
dependencies { | ||
// Core Dependencies | ||
implementation(libs.bundles.core) | ||
coreLibraryDesugaring(libs.android.desugarJdkLibs) | ||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | ||
|
||
// Pax Dependencies | ||
implementation(libs.google.zxing) | ||
|
||
// Sunmi Dependencies | ||
implementation(libs.sunmi.printer) | ||
|
||
// Utils | ||
implementation(libs.timber) | ||
detektPlugins(libs.detekt.formatting) | ||
|
||
// Unit tests | ||
testImplementation(libs.bundles.testing) | ||
testImplementation(libs.bundles.robolectric) | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
create<MavenPublication>(ConfigData.artifactId) { | ||
groupId = ConfigData.applicationId | ||
artifactId = ConfigData.artifactId | ||
version = ConfigData.versionName | ||
|
||
from(components.getByName("release")) | ||
} | ||
} | ||
} | ||
alias(libs.plugins.androidApplication) apply false | ||
alias(libs.plugins.kotlinAndroid) apply false | ||
alias(libs.plugins.androidLibrary) apply false | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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,6 +1,6 @@ | ||
#Fri Oct 28 09:52:12 CEST 2022 | ||
#Tue Feb 20 12:51:19 CET 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,93 @@ | ||
plugins { | ||
alias(libs.plugins.androidLibrary) | ||
alias(libs.plugins.kotlinAndroid) | ||
alias(libs.plugins.detekt) | ||
id("maven-publish") | ||
} | ||
|
||
android { | ||
namespace = "de.tillhub.printengine" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 21 | ||
ndk { | ||
abiFilters.add("armeabi-v7a") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = true | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
isCoreLibraryDesugaringEnabled = true | ||
} | ||
|
||
tasks.withType<Test> { | ||
useJUnitPlatform() | ||
} | ||
|
||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { | ||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_17.toString() | ||
freeCompilerArgs = listOf( | ||
"-Xstring-concat=inline" | ||
) | ||
} | ||
} | ||
|
||
testOptions { | ||
unitTests { | ||
isIncludeAndroidResources = true | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
// Core Dependencies | ||
implementation(libs.bundles.core) | ||
coreLibraryDesugaring(libs.android.desugarJdkLibs) | ||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | ||
|
||
// Pax Dependencies | ||
implementation(libs.google.zxing) | ||
|
||
// Sunmi Dependencies | ||
implementation(libs.sunmi.printer) | ||
|
||
// Utils | ||
implementation(libs.timber) | ||
detektPlugins(libs.detekt.formatting) | ||
|
||
// Unit tests | ||
testImplementation(libs.bundles.testing) | ||
testImplementation(libs.bundles.robolectric) | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
create<MavenPublication>("print-engine") { | ||
groupId = "de.tillhub.printengine" | ||
artifactId = "print-engine" | ||
version = "1.7.0" | ||
|
||
from(components.getByName("release")) | ||
} | ||
} | ||
} | ||
} |
Empty file.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/main/AndroidManifest.xml → print-engine/src/main/AndroidManifest.xml
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,2 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest/> | ||
<manifest /> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.