diff --git a/common/src/main/AndroidManifest.xml b/common/src/main/AndroidManifest.xml index 2b470c520..912b64498 100644 --- a/common/src/main/AndroidManifest.xml +++ b/common/src/main/AndroidManifest.xml @@ -22,7 +22,7 @@ = 24) { - uri = FileProvider.getUriForFile(mContext, "com.newpdlive.sy.fileprovider", mCameraResult); + uri = FileProvider.getUriForFile(mContext, mContext.getPackageName()+".fileprovider", mCameraResult); } else { uri = Uri.fromFile(mCameraResult); } @@ -195,7 +195,7 @@ public class ProcessImageUtil extends ProcessResultUtil { mCameraResult = getNewFile(); Uri uri = null; if (Build.VERSION.SDK_INT >= 24) { - uri = FileProvider.getUriForFile(mContext, "com.newpdlive.sy.fileprovider", mCameraResult); + uri = FileProvider.getUriForFile(mContext, mContext.getPackageName()+".fileprovider", mCameraResult); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); } else { uri = Uri.fromFile(mCameraResult); @@ -255,7 +255,7 @@ public class ProcessImageUtil extends ProcessResultUtil { startActivityForResult(intent, mCropResultCallback); } catch (Exception e) { try { - Uri resultUri = FileProvider.getUriForFile(mContext, "com.newpdlive.sy.fileprovider", mCorpResult); + Uri resultUri = FileProvider.getUriForFile(mContext, mContext.getPackageName()+".fileprovider", mCorpResult); if (resultUri == null || mFragment == null || mContext == null) { return; } diff --git a/common/src/main/java/com/yunbao/common/utils/VersionUtil.java b/common/src/main/java/com/yunbao/common/utils/VersionUtil.java index 1d701d2da..ac681d277 100644 --- a/common/src/main/java/com/yunbao/common/utils/VersionUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/VersionUtil.java @@ -63,7 +63,7 @@ public class VersionUtil { @Override public void onConfirmClick(Dialog dialog, String content) { Intent i = new Intent(android.content.Intent.ACTION_VIEW); - i.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.newpdlive.sy")); + i.setData(Uri.parse("https://play.google.com/store/apps/details?id="+context.getPackageName())); context.startActivity(i); context.finish(); } @@ -85,7 +85,7 @@ public class VersionUtil { @Override public void onConfirmClick(Dialog dialog, String content) { Intent i = new Intent(android.content.Intent.ACTION_VIEW); - i.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.newpdlive.sy")); + i.setData(Uri.parse("https://play.google.com/store/apps/details?id="+context.getPackageName())); context.startActivity(i); context.finish(); } diff --git a/common/src/main/java/com/yunbao/common/views/APKUpdateCustomPopup.java b/common/src/main/java/com/yunbao/common/views/APKUpdateCustomPopup.java index 298186982..d21669e56 100644 --- a/common/src/main/java/com/yunbao/common/views/APKUpdateCustomPopup.java +++ b/common/src/main/java/com/yunbao/common/views/APKUpdateCustomPopup.java @@ -125,15 +125,15 @@ public class APKUpdateCustomPopup extends CenterPopupView { public void onViewClicks() { if (CommonAppConfig.IS_GOOGLE_PLAY == 1) { Intent i = new Intent(android.content.Intent.ACTION_VIEW); - i.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.newpdlive.sy")); + i.setData(Uri.parse("https://play.google.com/store/apps/details?id="+mContext.getPackageName())); mContext.startActivity(i); mContext.finish(); } else if (CommonAppConfig.IS_GOOGLE_PLAY == 2) { //华为 - launchHwAppDetail(mContext, "com.newpdlive.sy", "com.huawei.appmarket"); + launchHwAppDetail(mContext, mContext.getPackageName(), "com.huawei.appmarket"); } else if (CommonAppConfig.IS_GOOGLE_PLAY == 3) { //三星 - launchSmAppDetail(mContext, "com.newpdlive.sy", "com.sec.android.app.samsungapps"); + launchSmAppDetail(mContext, mContext.getPackageName(), "com.sec.android.app.samsungapps"); } else { versionImmediateUse.setVisibility(GONE); updateLine.setVisibility(VISIBLE); diff --git a/config.gradle b/config.gradle index 3399b6bd2..e8445a08f 100644 --- a/config.gradle +++ b/config.gradle @@ -4,8 +4,8 @@ ext { buildToolsVersion: "29.0.2", minSdkVersion : 23, targetSdkVersion : 34, - versionCode : 664, - versionName : "6.6.1" + versionCode : 694, + versionName : "6.8.1" ] manifestPlaceholders = [ //正式、