Skip to content

Commit

Permalink
Dependencies versions bump
Browse files Browse the repository at this point in the history
Add chuck plugin
Add device info plugin
Add app info plugin
  • Loading branch information
koral-- committed Feb 7, 2019
1 parent 5323fea commit 0f01bdd
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Add FoQA dependency to `build.gradle` of the application module:

```groovy
dependencies {
debugImplementation 'pl.droidsonroids:foqa:0.0.1'
debugImplementation 'com.github.droidsonroids:foqa:0.0.2'
}
```

If not already present add Maven Central repository:
```groovy
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
```

Expand Down
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ buildscript {
minSdk : 21,
compileSdk : 28,
targetSdk : 28,
androidGradlePlugin: '3.3.0',
androidGradlePlugin: '3.3.1',
mavenPublishPlugin : '0.7.0',
versionsPlugin : '0.20.0',
hyperion : '0.9.27',
debugDb : '1.0.4'
debugDb : '1.0.4',
hyperionChuck : '1.0.0',
hyperionAppInfo : '1.0.0',
hyperionSimpleItem : '0.4.0',
deviceNames : '1.1.8',
]

repositories {
Expand All @@ -27,6 +31,7 @@ subprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter()
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=0.0.1
VERSION_NAME=0.0.2
GROUP=pl.droidsonroids
POM_DESCRIPTION=Various Quality Assurance utilities to be included in QA/testing variants of Android apps
POM_URL=https://github.com/DroidsOnRoids/FoQA
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ dependencies {
implementation "com.willowtreeapps.hyperion:hyperion-geiger-counter:$versions.hyperion"
implementation "com.willowtreeapps.hyperion:hyperion-timber:$versions.hyperion"
implementation "com.willowtreeapps.hyperion:hyperion-build-config:$versions.hyperion"
implementation "com.github.Commit451:Hyperion-Chuck:$versions.hyperionChuck"
implementation "com.star_zero:hyperion-appinfo:$versions.hyperionAppInfo"
implementation "com.github.takahirom:Hyperion-Simple-Item:$versions.hyperionSimpleItem"
implementation "com.jaredrummler:android-device-names:$versions.deviceNames"

implementation "com.amitshekhar.android:debug-db:$versions.debugDb"
}
12 changes: 11 additions & 1 deletion library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<manifest package="pl.droidsonroids.foqa"/>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pl.droidsonroids.foqa">

<application>
<provider
android:initOrder="-2147483648"
android:name="pl.droidsonroids.foqa.InitProvider"
android:authorities="pl.droidsonroids.foqa.init"
android:exported="false" />
</application>
</manifest>
20 changes: 20 additions & 0 deletions library/src/main/java/pl/droidsonroids/foqa/DeviceInfoPlugin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package pl.droidsonroids.foqa;

import android.os.Build;

import com.github.takahirom.hyperion.plugin.simpleitem.SimpleItem;
import com.github.takahirom.hyperion.plugin.simpleitem.SimpleItemHyperionPlugin;
import com.jaredrummler.android.device.DeviceName;

final class DeviceInfoPlugin {

static void initialize() {
String manufacturer = Build.MANUFACTURER;
String deviceModel = DeviceName.getDeviceName();
String sdk = Build.VERSION.RELEASE;
SimpleItem item = new SimpleItem.Builder()
.text(manufacturer + ' ' + deviceModel + " Android: " + sdk)
.build();
SimpleItemHyperionPlugin.addItem(item);
}
}
40 changes: 40 additions & 0 deletions library/src/main/java/pl/droidsonroids/foqa/InitProvider.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package pl.droidsonroids.foqa;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;

public class InitProvider extends ContentProvider {

@Override
public boolean onCreate() {
DeviceInfoPlugin.initialize();
return true;
}

@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
return null;
}

@Override
public String getType(Uri uri) {
return null;
}

@Override
public Uri insert(Uri uri, ContentValues values) {
return null;
}

@Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
return 0;
}

@Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
return 0;
}
}

0 comments on commit 0f01bdd

Please sign in to comment.