Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroidPoet committed Dec 26, 2023
0 parents commit 8d44c86
Show file tree
Hide file tree
Showing 67 changed files with 2,472 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*.{kt,kts}]
ktlint_standard_filename = disabled
ktlint_standard_no-wildcard-imports = disabled
ktlint_standard_function-naming = disabled
ktlint_function_naming_ignore_when_annotated_with=Composable
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sample/** linguist-detectable
sample/** -linguist-documentation
sample/**/*.xml -linguist-detectable
sample/**/*.plist -linguist-detectable
*.kts linguist-language=Kotlin
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Multiplatform project
on:
push:
branches:
- main
- feature/ci_support
pull_request:

jobs:
build-multiplatform-project:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-12, windows-2022]
gradle: [8.3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Build Multiplatform project
shell: bash
run: ./gradlew assemble
20 changes: 20 additions & 0 deletions .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check code style
on:
push:
branches:
- main
- feature/ci_support
pull_request:

jobs:
check-code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Check code style
shell: bash
run: ./gradlew ktlintCheck
43 changes: 43 additions & 0 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish Wiki
on:
push:
branches:
- main
paths-ignore:
- sample

concurrency:
group: publish-wiki
cancel-in-progress: true

jobs:
publish-wiki:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Generate Wiki
run: ./gradlew dokkaHtmlMultiModule

- name: Upload Wiki
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./build/dokka/htmlMultiModule
branch: gh-pages
force: true
68 changes: 68 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
*.iml
.gradle
/local.properties
/.idea
.DS_Store
build/
/captures
.externalNativeBuild
.cxx
sample/iosApp/Podfile.lock
sample/iosApp/Pods/*
sample/iosApp/iosApp.xcworkspace/*
sample/iosApp/iosApp.xcodeproj/*
!sample/iosApp/iosApp.xcodeproj/project.pbxproj
shared/shared.podspec

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/


# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries
app/.idea/

# Mac
*.DS_Store

# Keystore files
*.jks

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
2 changes: 2 additions & 0 deletions .hooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Install Git Hooks
`./gradlew setUpGitHooks`
19 changes: 19 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
# Auto format Kotlin files in the staging area
CHANGED_FILES="$(git --no-pager diff --name-only --cached --diff-filter=ACMRTUXB --relative | grep '\.kt[s"]\?$')"
if [ -z "$CHANGED_FILES" ]; then
echo "No Kotlin staged files."
else
echo "Running ktlint format over these files:"
echo "$CHANGED_FILES"
if ! (echo "$CHANGED_FILES" | xargs ./tools/ktlint --format --relative); then
exit $?
else
echo "Completed ktlint run."
echo "$CHANGED_FILES" | while read -r file; do
if [ -f "$file" ]; then
git add "$file"
fi
done
fi
fi
23 changes: 23 additions & 0 deletions .run/desktopApp.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="desktopApp" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$/sample/desktopApp" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="run" />
</list>
</option>
<option name="vmOptions" value="" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
Loading

0 comments on commit 8d44c86

Please sign in to comment.