-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("kotlin-android") | ||
id("com.google.devtools.ksp") | ||
} | ||
|
||
android { | ||
compileSdkVersion(31) | ||
buildToolsVersion("30.0.3") | ||
|
||
defaultConfig { | ||
applicationId("com.javalon.roomie") | ||
minSdkVersion(21) | ||
targetSdkVersion(31) | ||
versionCode(1) | ||
versionName("1.0") | ||
|
||
testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner") | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
|
||
getByName("debug") { | ||
sourceSets { | ||
getByName("main") { | ||
java.srcDir(File("build/generated/ksp/debug/kotlin")) | ||
} | ||
} | ||
} | ||
getByName("release") { | ||
sourceSets { | ||
getByName("main") { | ||
java.srcDir(File("build/generated/ksp/release/kotlin")) | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
val kotlinVersion: String by project | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion") | ||
implementation("androidx.core:core-ktx:1.7.0") | ||
implementation("androidx.appcompat:appcompat:1.4.1") | ||
implementation("com.google.android.material:material:1.5.0") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.3") | ||
implementation("com.google.code.gson:gson:2.9.0") | ||
implementation("androidx.room:room-runtime:2.4.1") | ||
|
||
implementation(project(":roomie-annotation")) | ||
ksp(project(":roomie-processor")) | ||
|
||
testImplementation("junit:junit:4.+") | ||
androidTestImplementation("androidx.test.ext:junit:1.1.3") | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0") | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
package com.javalon.roomie | ||
|
||
data class Person() | ||
import com.javalon.AddConverter | ||
|
||
//@AddConverter(name = "PeopleConverter") | ||
//data class Person(val firstName: String, val lastName: List<String>) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
val kotlinVersion: String by project | ||
val kspVersion: String by project | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath("com.android.tools.build:gradle:4.2.1") | ||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") | ||
classpath("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:$kspVersion") | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(rootProject.buildDir) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Feb 11 13:03:25 WAT 2022 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("kotlin") | ||
id("maven-publish") | ||
} | ||
|
||
group = "com.github.ezechuka" | ||
version = "1.0.0-beta02" | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
from(components["java"]) | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.javalon.roomie_annotation | ||
package com.javalon | ||
|
||
/** | ||
* Automatically generates a TypeConverter | ||
* for the class with this annotation. | ||
*/ | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target(AnnotationTarget.CLASS) | ||
annotation class AddConverter(val name: String = "") | ||
annotation class AddConverter(val name: String = "", val asList: Boolean = false) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
id("kotlin") | ||
id("maven-publish") | ||
} | ||
|
||
group = "com.github.ezechuka" | ||
version = "1.0.0-beta02" | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
val kspVersion: String by project | ||
|
||
dependencies { | ||
implementation("com.google.devtools.ksp:symbol-processing-api:$kspVersion") | ||
|
||
implementation(project(":roomie-annotation")) | ||
|
||
implementation("com.squareup:kotlinpoet:1.4.4") | ||
implementation("com.google.code.gson:gson:2.9.0") | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
from(components["java"]) | ||
} | ||
} | ||
} |
This file was deleted.