Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef118496 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Move to Github

parent c3ec1bbe
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
name: Build KDoc
on:
  push:
    branches: [main]
jobs:
  build:
    name: Build and publish KDoc
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true
      - uses: actions/setup-java@v2
        with:
          distribution: 'temurin'
          java-version: 11
          cache: 'gradle'
      - uses: gradle/wrapper-validation-action@v1

      - name: Build KDoc
        run: ./gradlew dokkaHtml
      - name: Publish KDoc
        if: success()
        uses: crazy-max/ghaction-github-pages@v2.5.0
        with:
          target_branch: gh-pages
          build_dir: build/dokka/html
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+63 −0
Original line number Diff line number Diff line
name: Development tests
on: push
jobs:
  test:
    name: Tests without emulator
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true
      - uses: actions/setup-java@v2
        with:
          distribution: 'temurin'
          java-version: 11
          cache: 'gradle'
      - uses: gradle/wrapper-validation-action@v1

      - name: Run lint
        run: ./gradlew lintDebug
      - name: Run unit tests
        run: ./gradlew testDebugUnitTest
      - name: Archive results
        uses: actions/upload-artifact@v2
        with:
          name: test-results
          path: |
            build/outputs/lint*
            build/reports

  test_on_emulator:
    name: Tests with emulator
    runs-on: privileged
    container:
      image: ghcr.io/bitfireat/docker-android-ci:main
      options: --privileged
      env:
        ANDROID_HOME: /sdk
        ANDROID_AVD_HOME: /root/.android/avd
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true
      - uses: gradle/wrapper-validation-action@v1

      - name: Cache gradle dependencies
        uses: actions/cache@v2
        with:
          key: ${{ runner.os }}-1
          path: |
            ~/.gradle/caches
            ~/.gradle/wrapper

      - name: Start emulator
        run: start-emulator.sh
      - name: Run connected tests
        run: ./gradlew connectedDebugAndroidTest
      - name: Archive results
        uses: actions/upload-artifact@v2
        with:
          name: test-results
          path: |
            build/reports

.gitlab-ci.yml

deleted100644 → 0
+0 −29
Original line number Diff line number Diff line
image: registry.gitlab.com/bitfireat/docker-android-emulator:latest

before_script:
  - export GRADLE_USER_HOME=`pwd`/.gradle; chmod +x gradlew

cache:
  paths:
     - .gradle/

test:
  tags:
    - privileged
  script:
    - start-emulator.sh
    - ./gradlew check connectedCheck
  artifacts:
    paths:
      - build/outputs/lint-results-debug.html
      - build/reports/

pages:
  script:
    - ./gradlew dokkaHtml
    - mkdir public && mv build/dokka public
  artifacts:
    paths:
      - public
  only:
    - master
+9 −7
Original line number Diff line number Diff line

[![build status](https://gitlab.com/bitfireAT/vcard4android/badges/master/build.svg)](https://gitlab.com/bitfireAT/vcard4android/commits/master)
[![Development tests](https://github.com/bitfireAT/vcard4android/actions/workflows/test-dev.yml/badge.svg)](https://github.com/bitfireAT/vcard4android/actions/workflows/test-dev.yml)
[![Documentation](https://img.shields.io/badge/documentation-kdoc-brightgreen)](https://bitfireat.github.io/vcard4android/)


# vcard4android
@@ -11,12 +12,13 @@ It's a framework for
  from/into data classes that are compatible with the Android Contacts Provider, and
* accessing the Android Contacts Provider by a unified API.

It has been primarily developed for [DAVx⁵](https://www.davx5.com).
It has been primarily developed for [DAVx⁵](https://www.davx5.com) and is currently intended
to be used as git submodule.

_This software is not affiliated to, nor has it been authorized, sponsored or otherwise approved
by Google LLC. Android is a trademark of Google LLC._

Generated KDoc: https://bitfireAT.gitlab.io/vcard4android/dokka/html/
Generated KDoc: https://bitfireat.github.io/vcard4android/


## Contact
@@ -27,14 +29,14 @@ Florastraße 27
2540 Bad Vöslau, AUSTRIA
```

Email: [play@bitfire.at](mailto:play@bitfire.at) (please do not use this)

Discussion: https://forums.bitfire.at/category/18/libraries
For questions, suggestions etc. use [Github discussions](https://github.com/bitfireAT/vcard4android/discussions).
We're happy about contributions! In case of bigger changes, please let us know in the discussions before.
Then make the changes in your own repository and send a pull request.


## License 

Copyright (C) Ricki Hirner (bitfire web engineering GmbH) and contributors.
Copyright (C) Ricki Hirner (bitfire web engineering GmbH) and [contributors](https://github.com/bitfireAT/vcard4android/graphs/contributors).

This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome
to redistribute it under the conditions of the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.html).