-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add square/wire #84
base: main
Are you sure you want to change the base?
Add square/wire #84
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
import Square.wire | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
kotlin("jvm") | ||
kotlin("kapt") | ||
kotlin("plugin.serialization") | ||
id("com.squareup.sqldelight") | ||
id("com.squareup.wire") | ||
id ("application") | ||
} | ||
|
||
group = "playground" | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
maven(url = "https://dl.bintray.com/kotlin/kotlin-eap/") | ||
} | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why a random added line? |
||
sqldelight { | ||
database("AppDatabase") { | ||
packageName = "util" | ||
} | ||
linkSqlite = false | ||
} | ||
|
||
wire { | ||
kotlin { | ||
|
||
} | ||
} | ||
Comment on lines
+29
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this empty config? |
||
|
||
|
||
// File build.gradle.kts | ||
dependencies { | ||
|
||
|
@@ -49,6 +58,7 @@ dependencies { | |
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:_") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:_") | ||
implementation("org.kodein.di:kodein-di:_") | ||
implementation ("com.squareup.wire:wire-runtime:3.4.0") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you read the contributing guide? If so, please read it again, otherwise, please read it, there's some important considerations regarding adding dependencies. |
||
implementation(JakeWharton.retrofit2.converter.kotlinxSerialization) | ||
implementation(Kotlin.stdlib.jdk8) | ||
implementation(KotlinX.collections.immutable) | ||
|
@@ -91,9 +101,7 @@ tasks.withType<Test> { | |
useJUnitPlatform() | ||
} | ||
|
||
tasks.register("run", JavaExec::class.java) { | ||
this.main = "playground._mainKt" | ||
} | ||
Comment on lines
-94
to
-96
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you remove this? |
||
|
||
Comment on lines
-94
to
+104
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this random line break? |
||
|
||
/** | ||
* How do I setup GitHub Actions for my Gradle or Android project? | ||
|
@@ -121,3 +129,4 @@ tasks.register<DefaultTask>("hello") { | |
group = "Custom" | ||
description = "Minimal task that do nothing. Useful to debug a failing build" | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import de.fayard.refreshVersions.bootstrapRefreshVersions | ||
|
||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
buildscript { | ||
repositories { mavenLocal() ; gradlePluginPortal() } | ||
repositories { mavenLocal() } | ||
Comment on lines
-4
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you remove the |
||
val useSnapshot = false | ||
dependencies.classpath( | ||
if (useSnapshot) "de.fayard.refreshVersions:refreshVersions:0.9.6-SNAPSHOT" else "de.fayard.refreshVersions:refreshVersions:0.9.5" | ||
|
@@ -12,6 +19,7 @@ plugins { | |
id("com.gradle.enterprise") version "3.4.1" | ||
} | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this line break? |
||
// https://dev.to/jmfayard/the-one-gradle-trick-that-supersedes-all-the-others-5bpg | ||
gradleEnterprise { | ||
buildScan { | ||
|
@@ -21,6 +29,7 @@ gradleEnterprise { | |
} | ||
} | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this line break? |
||
rootProject.name = "kotlin-libraries-playground" | ||
|
||
bootstrapRefreshVersions() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package playground.wire | ||
|
||
fun main() { | ||
} | ||
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this empty main function? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
//Using proto3 version of the proto buffer language | ||
syntax = "proto3"; | ||
|
||
// message type | ||
message HacktoberFest { | ||
string library_name = 1; | ||
repeated int32 hacktoberfest_participation_years = 2; | ||
User user = 3; | ||
} | ||
|
||
message User { | ||
string user_name = 1; | ||
bool user_participation_this_year = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove
mavenCentral()
?