docs: function (appRoot) {
    var sourceFile = path.join(appRoot, 'plugins/org.thaliproject.p2p/src/' +
      'android/java/io/jxcore/node/JXcoreExtension.java');
    var targetFile = path.join(appRoot, 'platforms/android/src/io/jxcore/node' +
      '/JXcoreExtension.java');
    try {
      var sourceContent = fs.readFileSync(sourceFile);
      fs.writeFileSync(targetFile, sourceContent);
    } catch (e) {
      console.log(e);
      console.log('Failed to update the JXcoreExtension.java file!');
      console.log('Please make sure plugins org.thaliproject.p2p and ' +
        'io.jxcore.node are installed.');
      // Exit the process on this error, because it is a hard requirement for this
      // plugin to get the right JXcoreExtension.java or otherwise there will be
      // a build error when the app is tried to be built.
      process.exit(-1);
    }
  }