Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: android
jdk: oraclejdk8
sudo: false

env:
global:
- ANDROID_TARGET=android-28
- ANDROID_ABI=arm64-v8a

android:
components:
- tools
- build-tools-28.0.3
- android-28

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache

before_install:
- chmod +x gradlew

script:
- ./gradlew build jacocoTestReport

after_success:
- bash <(curl -s https://codecov.io/bash) -t ${TOKEN_CODECOV}

licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.org/reaganiwadha/offix-android.svg?branch=master)](https://travis-ci.com/reaganiwadha/offix-android)
[![Code Coverage](https://codecov.io/gh/reaganiwadha/offix-android/branch/master/graph/badge.svg)](https://travis-ci.com/reaganiwadha/offix-android)

<p align="center">
<img width="400" src="https://github.com/aerogear/offix/raw/master/resources/logo.png">
<br/>
Expand Down Expand Up @@ -49,7 +52,10 @@ See [offix website](https://android.offix.dev) for usage and more details.

See [sample](https://github.com/aerogear/offix-android/tree/master/sample) for example application.<br/>


## Presentation Link

https://docs.google.com/presentation/d/1SzAfRQTqfMtXbp6jFfr99jkIjjZWslX3tU2Wkoec2Uk/edit?usp=sharing

## Contributing

See [contribution guidelines](./CONTRIBUTING.md) file for more information
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.apollographql.apollo:apollo-gradle-plugin:1.2.0'
// NOTE: Do not place your application dependencies here; they belong
Expand Down
18 changes: 16 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
buildscript{
repositories{
jcenter()
}
dependencies{
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
}
}

apply plugin: 'com.android.application'
apply plugin: 'com.apollographql.android'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-kapt'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'jacoco-android'



android {
compileSdkVersion 28

Expand All @@ -23,6 +34,9 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug{
testCoverageEnabled true
}
}
}

Expand Down
55 changes: 33 additions & 22 deletions sample/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sample/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"graphql-redis-subscriptions": "2.1.1",
"graphql-tag": "2.10.1",
"ioredis": "4.14.0",
"knex": "0.19.1",
"knex": "0.19.5",
"offix-conflicts-server": "^0.8.0",
"sofa-api": "0.4.0",
"sqlite3": "^4.0.9"
Expand Down