-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include all plugins inside the commons code
- Loading branch information
1 parent
950e43a
commit 8b2b9c0
Showing
511 changed files
with
110,882 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,5 @@ fabric.properties | |
|
||
## Pebble 2 | ||
.lock* | ||
.skip | ||
gradle.skip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apply plugin: 'com.jfrog.artifactory' | ||
|
||
artifactory { | ||
contextUrl = 'https://oss.jfrog.org/artifactory' | ||
publish { | ||
repository { | ||
repoKey = 'oss-snapshot-local' | ||
username = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') | ||
password = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') | ||
maven = true | ||
} | ||
defaults { | ||
publications ('mavenAar') | ||
publishArtifacts = true | ||
publishPom = true | ||
properties = ['qa.level': 'basic', 'q.os': 'android'] | ||
} | ||
} | ||
} | ||
|
||
artifactoryPublish.dependsOn 'assembleRelease' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') | ||
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') | ||
override = false | ||
publications 'mavenAar' | ||
pkg { | ||
repo = project.group | ||
name = project.name | ||
userOrg = 'radar-cns' | ||
desc = project.description | ||
licenses = ['Apache-2.0'] | ||
websiteUrl = website | ||
issueTrackerUrl = issueUrl | ||
vcsUrl = githubUrl | ||
githubRepo = githubRepoName | ||
githubReleaseNotesFile = 'README.md' | ||
version { | ||
name = project.version | ||
desc = project.description | ||
vcsTag = System.getenv('TRAVIS_TAG') | ||
released = new Date() | ||
gpg { | ||
sign = true //Determines whether to GPG sign the files. The default is false | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintrayUpload.dependsOn 'assembleRelease' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Application status plugin for RADAR-pRMT | ||
|
||
[![Build Status](https://travis-ci.org/RADAR-base/radar-android-application-status.svg?branch=master)](https://travis-ci.org/RADAR-base/radar-android-application-status) | ||
|
||
Plugin that sends application statuses about the RADAR pRMT app. | ||
|
||
## Installation | ||
|
||
To add the plugin code to your app, add the following snippet to your app's `build.gradle` file. | ||
|
||
```gradle | ||
dependencies { | ||
runtimeOnly "org.radarbase:radar-android-application-status:$radarCommonsAndroidVersion" | ||
} | ||
``` | ||
|
||
## Configuration | ||
|
||
To activate this plugin, add the provider `.monitor.application.ApplicationServiceProvider` to the Firebase Remote Config `device_services_to_connect` variable. | ||
|
||
This plugin takes the following Firebase configuration parameters: | ||
|
||
| Name | Type | Default | Description | | ||
| ---- | ---- | ------- | ----------- | | ||
| `ntp_server` | string | `<empty>` | NTP server to synchronize time with. If empty, time is not synchronized and the `application_external_time` topic will not receive data. | | ||
| `application_status_update_rate` | int (seconds) | `300` = 5 minutes | Rate at which to send data for all application topics. | | ||
| `application_send_ip` | boolean | `false` | Whether to send the device IP address with the server status. | | ||
| `application_time_zone_update_rate` | int (seconds) | `86400` = 1 day | How often to send the current time zone. Set to `0` to disable. | | ||
|
||
This plugin produces data for the following topics: (types starts with `org.radarcns.monitor.application` prefix) | ||
|
||
| Topic | Type | Description | | ||
| ----- | ---- | ----------- | | ||
| `application_external_time` | `ApplicationExternalTime` | External NTP time. Requires `ntp_server` parameter to be set. | | ||
| `application_record_counts` | `ApplicationRecordCounts` | Number of records sent and in queue. | | ||
| `application_uptime` | `ApplicationUptime` | Time since the device booted. | | ||
| `application_server_status` | `ApplicationServerStatus` | Server connection status. | | ||
| `application_time_zone` | `ApplicationTimeZone` | Application time zone. Data is only sent on updates. | | ||
| `application_device_info` | `ApplicationDeviceInfo` | Device information. Data is only sent on updates. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apply from: "$rootDir/gradle/android.gradle" | ||
|
||
//---------------------------------------------------------------------------// | ||
// Configuration // | ||
//---------------------------------------------------------------------------// | ||
|
||
description = 'Application statistics plugin for RADAR passive remote monitoring app' | ||
|
||
//---------------------------------------------------------------------------// | ||
// Sources and classpath configurations // | ||
//---------------------------------------------------------------------------// | ||
|
||
dependencies { | ||
api project(':radar-commons-android') | ||
} | ||
|
||
apply from: "$rootDir/gradle/publishing.gradle" | ||
apply from: "$rootDir/gradle/bintray.gradle" |
8 changes: 8 additions & 0 deletions
8
plugins/radar-android-application-status/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.radarbase.monitor.application" > | ||
|
||
<application> | ||
<service android:name=".ApplicationStatusService"/> | ||
</application> | ||
</manifest> |
39 changes: 39 additions & 0 deletions
39
...tion-status/src/main/java/org/radarbase/monitor/application/ApplicationServiceProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2017 The Hyve | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.radarbase.monitor.application | ||
|
||
import org.radarbase.android.device.DeviceServiceProvider | ||
|
||
open class ApplicationServiceProvider : DeviceServiceProvider<ApplicationState>() { | ||
override val description: String? | ||
get() = radarService.getString(R.string.application_status_description) | ||
|
||
override val serviceClass: Class<ApplicationStatusService> = ApplicationStatusService::class.java | ||
|
||
override val isDisplayable: Boolean = false | ||
|
||
override val permissionsNeeded: List<String> = emptyList() | ||
|
||
override val displayName: String | ||
get() = radarService.getString(R.string.applicationServiceDisplayName) | ||
|
||
override val sourceProducer: String = "RADAR" | ||
|
||
override val sourceModel: String = "pRMT" | ||
|
||
override val version: String = BuildConfig.VERSION_NAME | ||
} |
Oops, something went wrong.