Skip to content

Commit

Permalink
Switch to GitHub actions and to Maven Central
Browse files Browse the repository at this point in the history
Also update the README.
  • Loading branch information
Victor Paleologue committed May 25, 2021
1 parent ca690b1 commit d7b79ca
Show file tree
Hide file tree
Showing 17 changed files with 113 additions and 788 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/continuous-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Android CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -PABIS=x86_64
35 changes: 35 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Release from tag"

on:
push:
tags:
- "v*"

jobs:
gh_tagged_release:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease


- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
library/build/outputs/aar/*.aar
library/build/outputs/apk/*.apk
id: "automatic_releases"
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,27 @@

This is a port of the [Fast Downward PDDL Planner](http://www.fast-downward.org/) for Android.

This project implements the interface provided by `com.softbankrobotics:pddl-planning`.
This project implements the interface provided by the library
[`com.softbankrobotics.pddl:pddl-planning`](https://github.com/aldebaran/pddl-planning-android).

## Usage

The library and its dependencies are publicly available on Maven Central, but **not** in JCenter.
The `build.gradle` at the root of your project should mention:

```groovy
allprojects {
repositories {
mavenCentral()
}
}
```

## Usage as a library

Get the library with Gradle:
Make your module depend on it:
```groovy
implementation 'com.softbankrobotics:fast-downward-android:2.0.1'
implementation 'com.softbankrobotics.pddl:fast-downward-android:2.2.0'
```
Use `setupFastDownwardPlanner` to get a `PlanSearchFunction`,
that can be used along with the utilities provided by `com.softbankrobotics:pddl-planning`.
Expand All @@ -21,7 +35,7 @@ To use it as a stand-alone Android service application:
but not in the main launcher app, because it has no main activity.
- let your module depend on the PDDL Planning interface for Android:
```groovy
implementation 'com.softbankrobotics:pddl-planning:1.1.3'
implementation 'com.softbankrobotics.pddl:pddl-planning:1.4.0'
```
- use `createPlanSearchFunctionFromService` with the right `Intent` to target this app's service
to get a `PlanSearchFunction`:
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.softbankrobotics.fastdownward"
applicationId "com.softbankrobotics.pddl.fastdownward"
minSdkVersion 23
targetSdkVersion 30
versionCode getProperty("VERSION_CODE") as Integer
Expand Down
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.1'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2'

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.6.1' // Crashlytics plugin
classpath 'com.google.firebase:perf-plugin:1.4.0' // Performance Monitoring plugin
}
Expand All @@ -33,7 +34,12 @@ allprojects {
repositories {
google()
mavenCentral()

}

plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}

Expand Down
22 changes: 16 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
android.useAndroidX=true

POM_GROUP_ID=com.softbankrobotics
POM_NAME=Fast Downward Android
POM_ARTIFACT_ID=fast-downward-android
POM_PACKAGING=aar
VERSION_CODE=10
VERSION_NAME=2.1.3
GROUP=com.softbankrobotics.pddl
VERSION_CODE=11
VERSION_NAME=2.2.0

POM_URL=https://github.com/aldebaran/fast-downward-android
POM_SCM_URL=https://github.com/aldebaran/fast-downward-android
POM_SCM_CONNECTION=scm:https://github.com/aldebaran/fast-downward-android.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:aldebaran/fast-downward-android.git

POM_LICENCE_NAME=GNU General Public License v3.0
POM_LICENCE_URL=https://opensource.org/licenses/GPL-3.0
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=softbank.robotics.europe
POM_DEVELOPER_NAME=SoftBank Robotics Europe
POM_DEVELOPER_URL=https://github.com/aldebaran/
37 changes: 0 additions & 37 deletions gradle/artifacts.gradle

This file was deleted.

9 changes: 0 additions & 9 deletions gradle/config/checkstyle/checkstyle.gradle

This file was deleted.

29 changes: 0 additions & 29 deletions gradle/config/coverage/coverage.gradle

This file was deleted.

Loading

0 comments on commit d7b79ca

Please sign in to comment.