-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project architecture improvements (#2)
* - Separated the BigDecimal and BigInteger implementations - Prepared the project to be completely multiplatform ready - Updated the publishing names - Updated the README * Added Kontinuum CI * Run ktlintFormat * Changed project version to 0.0.1 * Changed the project group id to reflect the one that Jitpack uses
- Loading branch information
Showing
19 changed files
with
437 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type":"library", | ||
"stages":["build"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kotlin.sourceSets { | ||
commonMain.dependencies { | ||
api project(":biginteger") | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
.../src/kbignumbers/bigdecimal/BigDecimal.kt → ...ting/kbignumbers/bigdecimal/BigDecimal.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/kbignumbers/biginteger/BigInteger.kt → ...ting/kbignumbers/biginteger/BigInteger.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apply from: rootProject.file("gradle/ide.gradle") | ||
apply from: rootProject.file("gradle/native.gradle") | ||
|
||
kotlin { | ||
targets { | ||
if (project.ext.ideaActive) { | ||
fromPreset(project.ext.ideaPreset, 'darwin') | ||
} else { | ||
fromPreset(presets.iosArm64, 'iosArm64') | ||
fromPreset(presets.iosArm32, 'iosArm32') | ||
fromPreset(presets.iosX64, 'iosX64') | ||
fromPreset(presets.macosX64, 'macosX64') | ||
} | ||
} | ||
sourceSets { | ||
darwinMain { dependsOn commonMain } | ||
darwinTest | ||
|
||
if (!project.ext.ideaActive) { | ||
configure([iosArm32Main, iosArm64Main, iosX64Main, macosX64Main]) { | ||
dependsOn darwinMain | ||
} | ||
|
||
configure([iosArm32Test, iosArm64Test, iosX64Test, macosX64Test]) { | ||
dependsOn darwinTest | ||
} | ||
} | ||
} | ||
} | ||
|
||
project.ext.set("hasNative", true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
task prepareIdeInterop(type: Copy) { | ||
if (project.ext.isLinuxHost) { | ||
from "build/classes/kotlin/linuxX64" | ||
} | ||
if (project.ext.isMacosHost) { | ||
from "build/classes/kotlin/macosX64" | ||
} | ||
if (project.ext.isWinHost) { | ||
from "build/classes/kotlin/mingwX64" | ||
} | ||
|
||
into "build/classes/kotlin/posix" | ||
} | ||
|
||
configure([assemble]) { | ||
doLast { prepareIdeInterop.execute() } | ||
} |
Oops, something went wrong.