Skip to content

Commit

Permalink
Merge pull request #359 from ACRA/buildconfig
Browse files Browse the repository at this point in the history
Looking for BuildConfig class in the package defined in AndroidManifet, not the package of the Application class.
  • Loading branch information
william-ferguson-au committed Feb 3, 2016
2 parents ceb55c3 + 9053b4e commit f2c51d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ private Class<?> getBuildConfigClass() throws ClassNotFoundException {
return configuredBuildConfig;
}

final String className = context.getClass().getPackage().getName() + ".BuildConfig";
final String className = context.getPackageName() + ".BuildConfig";
try {
return Class.forName(className);
} catch (ClassNotFoundException e) {
Expand Down

0 comments on commit f2c51d4

Please sign in to comment.