-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding ktlint gradle library * Adding build gradle * switch to java 11 * Update github-ci.yml * update to java 17
- Loading branch information
Showing
12 changed files
with
43 additions
and
23 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 |
---|---|---|
|
@@ -34,11 +34,17 @@ jobs: | |
run: | | ||
echo Add other actions to build, | ||
echo test, and deploy your project. | ||
# Grant permissions for gradlew | ||
# Set java version to 17 | ||
- name: set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
|
||
# Grant permissions for gradlew | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
#- name: Kotlin checkstyle | ||
# run: ./gradlew ktlintCheck | ||
- name: Build with Gradle | ||
- name: Kotlin checkstyle | ||
run: ./gradlew ktlintCheck | ||
- name: Run tests | ||
run: ./gradlew test |
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 |
---|---|---|
|
@@ -38,4 +38,5 @@ bin/ | |
### Mac OS ### | ||
.DS_Store | ||
|
||
local.properties | ||
local.properties | ||
/java_pid44785.hprof |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ package org.hisp.dhis.common | |
|
||
actual fun getPlatformName(): String { | ||
return "Android" | ||
} | ||
} |
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
3 changes: 3 additions & 0 deletions
3
common/src/commonMain/kotlin/org/hisp/dhis/common/Platform.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.hisp.dhis.common | ||
|
||
expect fun getPlatformName(): String |
3 changes: 0 additions & 3 deletions
3
common/src/commonMain/kotlin/org/hisp/dhis/common/platform.kt
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ import androidx.compose.runtime.Composable | |
@Composable | ||
fun AppPreview() { | ||
App() | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ package org.hisp.dhis.common | |
|
||
actual fun getPlatformName(): String { | ||
return "Desktop" | ||
} | ||
} |