This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 为数字加上单位:万或亿 | |
* | |
* 例如: | |
* 1000.01 => 1000.01 | |
* 10000 => 1万 | |
* 99000 => 9.9万 | |
* 566000 => 56.6万 | |
* 5660000 => 566万 | |
* 44440000 => 4444万 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RealPathUtil { | |
public static String getRealPath(Context context, Uri fileUri) { | |
String realPath; | |
// SDK < API11 | |
if (Build.VERSION.SDK_INT < 11) { | |
realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri); | |
} | |
// SDK >= 11 && SDK < 19 | |
else if (Build.VERSION.SDK_INT < 19) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Just add this script as `after_build` and `after_prepare` hook in config.xml for ios platform. | |
*/ | |
const { join } = require('path') | |
const fs = require('fs') | |
// TODO: Remove this after https://issues.apache.org/jira/browse/CB-11311 is fixed | |
module.exports = function(ctx) { | |
if (!ctx.opts.browserify) { |