Skip to content

Commit 7cfd528

Browse files
committed
initial commit
0 parents  commit 7cfd528

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1605
-0
lines changed

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/protoeditor.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

androidplugin/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
plugins {
2+
id("java")
3+
}
4+
5+
group = "dev.oianmol"
6+
version = "1.0-SNAPSHOT"
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
dependencies {
13+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
14+
testImplementation("org.junit.jupiter:junit-jupiter")
15+
}
16+
17+
tasks.test {
18+
useJUnitPlatform()
19+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package dev.oianmol;
2+
3+
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
4+
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
5+
public class Main {
6+
public static void main(String[] args) {
7+
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
8+
// to see how IntelliJ IDEA suggests fixing it.
9+
System.out.printf("Hello and welcome!");
10+
11+
for (int i = 1; i <= 5; i++) {
12+
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
13+
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
14+
System.out.println("i = " + i);
15+
}
16+
}
17+
}

build.gradle.kts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import com.google.protobuf.gradle.id
2+
3+
plugins {
4+
kotlin("jvm") version "1.9.23"
5+
id("java")
6+
application
7+
id("com.google.protobuf") version "0.9.0"
8+
}
9+
10+
group = "dev.oianmol"
11+
version = "1.0-SNAPSHOT"
12+
13+
object Versions {
14+
const val GRPC = "1.57.2"
15+
const val GRPC_KOTLIN = "1.3.1"
16+
const val PROTOBUF = "3.24.2"
17+
const val COROUTINES = "1.7.3"
18+
}
19+
20+
21+
repositories {
22+
mavenCentral()
23+
}
24+
25+
dependencies {
26+
protobuf(project(":protos"))
27+
implementation("io.insert-koin:koin-core:3.4.0")
28+
implementation("io.grpc:grpc-netty-shaded:1.57.2")
29+
implementation("com.google.protobuf:protobuf-java-util:3.24.2")
30+
implementation("com.google.protobuf:protobuf-kotlin:3.24.2")
31+
implementation("io.grpc:grpc-protobuf:1.57.2")
32+
implementation("io.grpc:grpc-stub:1.57.2")
33+
implementation("io.grpc:grpc-kotlin-stub:1.3.1")
34+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
35+
36+
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.7")
37+
implementation("javax.xml.stream:stax-api:1.0-2")
38+
39+
testImplementation(kotlin("test"))
40+
testImplementation("io.mockk:mockk:1.13.7")
41+
testImplementation("app.cash.turbine:turbine:1.0.0")
42+
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
43+
testImplementation("io.grpc:grpc-testing:1.51.0")
44+
}
45+
46+
protobuf {
47+
protoc {
48+
artifact = "com.google.protobuf:protoc:${Versions.PROTOBUF}"
49+
}
50+
51+
plugins {
52+
id("grpc") {
53+
artifact = "io.grpc:protoc-gen-grpc-java:${Versions.GRPC}"
54+
}
55+
id("grpckt") {
56+
artifact = "io.grpc:protoc-gen-grpc-kotlin:${Versions.GRPC_KOTLIN}:jdk8@jar"
57+
}
58+
}
59+
generateProtoTasks {
60+
ofSourceSet("main").forEach {
61+
it.plugins {
62+
id("grpc") {
63+
option("lite")
64+
}
65+
id("grpckt") {
66+
option("lite")
67+
}
68+
}
69+
70+
it.builtins {
71+
id("kotlin") {
72+
option("lite")
73+
}
74+
}
75+
}
76+
}
77+
}
78+
79+
tasks.test {
80+
useJUnitPlatform()
81+
}
82+
83+
application {
84+
mainClass.set("MainKt")
85+
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kotlin.code.style=official

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sun Jul 07 17:53:24 IST 2024
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)