Skip to content
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

Kotlin way #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -11,14 +11,13 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath group: 'net.rubygrapefruit', name: 'native-platform', version: '0.21'
classpath 'com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:0.9.0'
}
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.41'
}

apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.kotlin.multiplatform'
apply plugin: 'com.codingfeline.buildkonfig'

repositories {
mavenCentral()
@@ -115,6 +114,16 @@ task fatFramework(type: FatFrameworkTask) {
)
}

buildkonfig {
packageName = 'com.example.app'
// objectName = 'YourAwesomeConfig'
// exposeObjectWithName = 'YourAwesomePublicConfig'

defaultConfigs {
buildConfigField 'STRING', 'isDebug', 'true'
}
}

apply from: rootProject.file('pom.gradle')
apply from: rootProject.file('gradle/publish.gradle')

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kotlin.code.style=official
groupId=in.messai.kyuga
kyugaVersion=0.1.0
kotlin_version=1.4.20
kotlin_version=1.4.32

projectGithubUrl=https://github.com/messai-engineering/Kyuga
projectDescription=Kyuga
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
8 changes: 8 additions & 0 deletions local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Fri Aug 13 23:00:43 IST 2021
sdk.dir=/Users/tcadmin/Library/Android/sdk
Loading