Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
range: 50..80
round: down
precision: 2

comment:
layout: diff, files
Binary file removed .github/componentbox.gif
Binary file not shown.
24 changes: 0 additions & 24 deletions .github/scripts/checksum.sh

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/ci.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/coverage.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish

on:
push:
branches: [ master ]

jobs:
Publish:
runs-on: ubuntu-latest
if: github.repository == 'dropbox/componentbox' && github.ref == 'refs/heads/master'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK env
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11

- name: Upload Artifacts
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: Retrieve version
run: |
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
- name: Publish release
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
if: "!endsWith(env.VERSION_NAME, '-SNAPSHOT')"
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
57 changes: 57 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.7.10'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.22.0'
classpath 'org.jetbrains.kotlinx:kover:0.6.0'
classpath 'org.jetbrains.kotlinx:kotlinx-cli:0.3.4'
classpath 'com.rickclephas.kmp:kmp-nativecoroutines-gradle-plugin:0.12.6-new-mm'
classpath 'app.cash.zipline:zipline-gradle-plugin:0.9.4'
classpath 'com.squareup.anvil:gradle-plugin:2.4.2'
}
}

plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.7.10'
id 'org.jetbrains.dokka' version '1.7.10'
id 'org.jetbrains.kotlinx.kover' version '0.6.0'
}
apply plugin: 'com.vanniktech.maven.publish.base'
apply plugin: 'com.android.library'

allprojects {
version = project.property("VERSION_NAME") as String

repositories {
google()
mavenCentral()

maven {
url 'https://maven.pkg.jetbrains.space/public/p/compose/dev'
}

maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
}

android {
compileSdkVersion 33
defaultConfig {
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName '0.2.0-alpha01'
}
}

kotlin {
android("android")
}
117 changes: 0 additions & 117 deletions build.gradle.kts

This file was deleted.

7 changes: 0 additions & 7 deletions buildSrc/build.gradle.kts

This file was deleted.

Loading