comScore analytics support for codename one applications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
native
nbproject
src/com/pmovil/comscore
.gitignore
README.md
Stubber.jar
build.xml
codenameone_library.properties
manifest.mf
manifest.properties

README.md

Build:

  • Clone this project
  • Download the android comScore sdk from here
  • Copy comscore.jar into native/android
  • Download the ios comScore sdk from here
  • Copy libcomScore.a and all header files into native/ios
  • Build the project, it shall generate dist/comScore.cn1lib

Installation and usage:

  • Copy the generated dist/comScore.cn1lib into your projects lib folder

  • Refresh libs

  • Add SystemConfiguration.framework;Security.framework to the ios.add_libs property

  • Add <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> to the android.xpermissions property

  • In the main class init method:

     comScore.init(context);
  • Then:

     comScore.setCustomerC2("1234567");
     comScore.setPublisherSecret("your publisher secret");

Please notice that the usage statistics may take a few hours to be available in the comScore interface.