carp_apps_package 0.21.0
carp_apps_package: ^0.21.0 copied to clipboard

Apps sampling package for the CARP Mobile Sensing framework (Android only).

CARP Apps Sampling Package #

pub package

This library contains a sampling package for app-related sampling to work with the carp_mobile_sensing framework. This packages supports sampling of the following Measure types:

  • apps
  • app_usage

See the wiki for further documentation, particularly on available measure types and sampling schemas.

For Flutter plugins for other CARP products, see CARP Mobile Sensing in Flutter.

If you're interested in writing you own sampling packages for CARP, see the description on how to extend CARP on the wiki.

Installing #

To use this package, add the following to you pubspc.yaml file. Note that this package only works together with carp_mobile_sensing.

dependencies:
  flutter:
    sdk: flutter
  carp_core: ^0.20.0
  carp_mobile_sensing: ^0.20.0
  carp_apps_package: ^0.20.0
  ...

Android Integration #

Edit your app's manifest.xml file such that it contains the following:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="<YOUR_PACKAGE_NAME>"
    xmlns:tools="http://schemas.android.com/tools">

   <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" tools:ignore="ProtectedPermissions"/>
   ...
</manifest>

iOS Integration #

Not supported.

Using it #

To use this package, import it into your app together with the carp_mobile_sensing package:

import 'package:carp_core/carp_core.dart';
import 'package:carp_mobile_sensing/carp_mobile_sensing.dart';
import 'package:carp_connectivity_package/connectivity.dart';

Before creating a study and running it, register this package in the SamplingPackageRegistry.

  SamplingPackageRegistry().register(AppsSamplingPackage());
0
likes
80
pub points
49%
popularity

Publisher

cachet.dk

Apps sampling package for the CARP Mobile Sensing framework (Android only).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

app_usage, carp_mobile_sensing, device_apps, flutter, json_annotation, permission_handler

More

Packages that depend on carp_apps_package