Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
springeye committed Jan 18, 2024
0 parents commit 436c537
Show file tree
Hide file tree
Showing 210 changed files with 14,281 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release
on:
push:
tags:
- '*'

jobs:
gradle:

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: memosc_${{ github.ref_name }}_amd64.deb
asset_name: memosc_${{ github.ref_name }}_amd64.deb
type: Deb
dir: deb
- os: windows-latest
artifact_name: memosc-${{ github.ref_name }}.exe
asset_name: memosc-${{ github.ref_name }}.exe
type: Exe
dir: exe
- os: macos-latest
artifact_name: memosc-${{ github.ref_name }}.dmg
asset_name: memosc-${{ github.ref_name }}.dmg
type: Dmg
dir: dmg
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 19
cache: 'gradle'
- uses: ConorMacBride/install-package@v1
with:
apt: fakeroot
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'gradle/libs.versions.toml'
field: 'versions.packageVersion'

- name: Execute Gradle build

run: ./gradlew packageRelease${{ matrix.type }} --no-daemon
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
env:
FILE_NAME: ${{steps.read_toml.outputs.value}}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: composeApp/build/compose/binaries/main-release/${{ matrix.dir }}/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
# tag: ${{ github.ref }}
overwrite: true
#composeApp/build/compose/binaries/main/dmg/memosc-1.0.0.dmg
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test
on:
push:
branches:
- '*'

jobs:
gradle:

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: memosc_${{ github.ref_name }}_amd64.deb
asset_name: memosc_${{ github.ref_name }}_amd64.deb
type: Deb
dir: deb
- os: windows-latest
artifact_name: memosc-${{ github.ref_name }}.exe
asset_name: memosc-${{ github.ref_name }}.exe
type: Exe
dir: exe
- os: macos-latest
artifact_name: memosc-${{ github.ref_name }}.dmg
asset_name: memosc-${{ github.ref_name }}.dmg
type: Dmg
dir: dmg
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 19
cache: 'gradle'
- uses: ConorMacBride/install-package@v1
with:
apt: fakeroot
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'gradle/libs.versions.toml'
field: 'versions.packageVersion'
- name: Execute Gradle build
run: ./gradlew packageRelease${{ matrix.type }} --no-daemon
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*.iml
.gradle
**/build/
xcuserdata
!src/**/build/
local.properties
.idea
.DS_Store
captures
.externalNativeBuild
.cxx
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/project.xcworkspace/
!*.xcworkspace/contents.xcworkspacedata
**/xcshareddata/WorkspaceSettings.xcsettings
/composeApp/settings_preferences.preferences_pb
/.env
*.db
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 springeye

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
This is a Kotlin Multiplatform project targeting Android, iOS, Desktop.

* `/composeApp` is for code that will be shared across your Compose Multiplatform applications.
It contains several subfolders:
- `commonMain` is for code that’s common for all targets.
- Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name.
For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app,
`iosMain` would be the right folder for such calls.

* `/iosApp` contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform,
you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project.


Learn more about [Kotlin Multiplatform](https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html)
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
}
Loading

0 comments on commit 436c537

Please sign in to comment.