Skip to content

Commit 253374d

Browse files
committed
Converted to use normal gradle
1 parent a5d6c7b commit 253374d

10 files changed

Lines changed: 144 additions & 257 deletions

File tree

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
id 'com.android.application' version '7.2.0' apply false
4+
id 'com.android.library' version '7.2.0' apply false
5+
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
6+
}
7+
8+
task clean(type: Delete) {
9+
delete rootProject.buildDir
10+
}

build.gradle.kts

Lines changed: 0 additions & 72 deletions
This file was deleted.

quickie/build.gradle

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
5+
id 'kotlin-parcelize'
6+
}
7+
8+
android {
9+
compileSdk 33
10+
11+
defaultConfig {
12+
minSdk 24
13+
targetSdk 33
14+
15+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16+
consumerProguardFiles "consumer-rules.pro"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
kotlinOptions {
30+
jvmTarget = '1.8'
31+
}
32+
buildFeatures {
33+
viewBinding true
34+
dataBinding true
35+
}
36+
}
37+
38+
dependencies {
39+
40+
implementation 'androidx.core:core-ktx:1.9.0'
41+
implementation "androidx.activity:activity-ktx:1.6.1"
42+
implementation 'androidx.appcompat:appcompat:1.6.1'
43+
44+
implementation 'com.google.mlkit:barcode-scanning:17.1.0'
45+
46+
def camerax_version = "1.2.2"
47+
implementation "androidx.camera:camera-core:${camerax_version}"
48+
implementation "androidx.camera:camera-camera2:${camerax_version}"
49+
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
50+
implementation "androidx.camera:camera-video:${camerax_version}"
51+
52+
implementation "androidx.camera:camera-view:${camerax_version}"
53+
implementation "androidx.camera:camera-extensions:${camerax_version}"
54+
}
55+
56+
task androidSourcesJar(type: Jar) {
57+
classifier 'sources'
58+
from android.sourceSets.main.java.srcDirs
59+
}
60+
61+
project.afterEvaluate {
62+
publishing {
63+
publications {
64+
release(MavenPublication) {
65+
from components.release
66+
groupId = "dk.makeable.codescanner"
67+
artifactId = "cocdescanner"
68+
version = '1.0.0'
69+
artifact androidSourcesJar
70+
}
71+
}
72+
}
73+
}

quickie/build.gradle.kts

Lines changed: 0 additions & 134 deletions
This file was deleted.

quickie/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="io.github.g00fy2.quickie"
4+
>
35

46
<uses-feature
57
android:name="android.hardware.camera"

quickie/src/bundled/kotlin/io/github/g00fy2/quickie/utils/MlKitErrorHandler.kt renamed to quickie/src/main/kotlin/io/github/g00fy2/quickie/MlKitErrorHandler.kt

File renamed without changes.

sample/build.gradle

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
compileSdk 33
8+
9+
defaultConfig {
10+
applicationId "dk.makeable.mediapicker"
11+
minSdk 24
12+
targetSdk 33
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
kotlinOptions {
30+
jvmTarget = '1.8'
31+
}
32+
buildFeatures {
33+
viewBinding true
34+
dataBinding true
35+
}
36+
}
37+
38+
dependencies {
39+
40+
implementation 'androidx.core:core-ktx:1.8.0'
41+
implementation 'androidx.appcompat:appcompat:1.5.0'
42+
implementation 'com.google.android.material:material:1.6.1'
43+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
44+
45+
implementation project(":quickie")
46+
}

sample/build.gradle.kts

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)