Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle tasks crashlyticsUploadDistributionDebug fails #59

Open
rkmax opened this issue Aug 11, 2016 · 2 comments
Open

Gradle tasks crashlyticsUploadDistributionDebug fails #59

rkmax opened this issue Aug 11, 2016 · 2 comments

Comments

@rkmax
Copy link

rkmax commented Aug 11, 2016

On the root of the android project app/platforms/android must exists a file fabric.properties with the following data

apiSecret=FABRIC_API_SECRET

I think this file must be crreate on the prepare stage using the hook after_prepare

@rkmax
Copy link
Author

rkmax commented Aug 11, 2016

I have added this file but I dont have experience with this kind of plugins

hooks/after_prepare.js

var fs = require("fs");
var path = require("path")
var utilities = require("./lib/utilities");

module.exports = function(context) {
  if (platforms.indexOf("android") !== -1) {
    var config = utilities.getPluginConfig("android");
    var filePath = path.join("..", "..", "..", "fabric.properties");
    fs.writeFileSync(filePath, "apiSecret=" + config.apiSecret);
  }
};

@HaukeRa
Copy link

HaukeRa commented Jul 25, 2017

Facing the same issue, does your solution work? Would this be something to create a pullrequest for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants