From a9e5bdb91e8e4393e4d772c76cd038251ddf9d44 Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Tue, 28 Jul 2020 15:56:07 +0800
Subject: [PATCH] chore: Modify bundleId & packageName.
---
example/android/app/_BUCK | 4 ++--
example/android/app/build.gradle | 2 +-
.../src/debug/java/com/example/ReactNativeFlipper.java | 2 +-
example/android/app/src/main/AndroidManifest.xml | 2 +-
.../app/src/main/java/com/example/MainActivity.java | 2 +-
.../app/src/main/java/com/example/MainApplication.java | 4 ++--
example/ios/example.xcodeproj/project.pbxproj | 8 +++++---
7 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/example/android/app/_BUCK b/example/android/app/_BUCK
index a4cb8a5..a25dbb9 100644
--- a/example/android/app/_BUCK
+++ b/example/android/app/_BUCK
@@ -35,12 +35,12 @@ android_library(
android_build_config(
name = "build_config",
- package = "com.example",
+ package = "com.uiwjs.example.alipay",
)
android_resource(
name = "res",
- package = "com.example",
+ package = "com.uiwjs.example.alipay",
res = "src/main/res",
)
diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 080f2fe..bbddfd3 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -129,7 +129,7 @@ android {
}
defaultConfig {
- applicationId "com.example"
+ applicationId "com.uiwjs.example.alipay"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
diff --git a/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java b/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java
index a1b70b8..24deb04 100644
--- a/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java
+++ b/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java
@@ -4,7 +4,7 @@
*
This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
-package com.example;
+package com.uiwjs.example.alipay;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
index 6e27a2a..fadab54 100644
--- a/example/android/app/src/main/AndroidManifest.xml
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
+ package="com.uiwjs.example.alipay">
diff --git a/example/android/app/src/main/java/com/example/MainActivity.java b/example/android/app/src/main/java/com/example/MainActivity.java
index 8aa8cb2..9d26dd5 100644
--- a/example/android/app/src/main/java/com/example/MainActivity.java
+++ b/example/android/app/src/main/java/com/example/MainActivity.java
@@ -1,4 +1,4 @@
-package com.example;
+package com.uiwjs.example.alipay;
import com.facebook.react.ReactActivity;
diff --git a/example/android/app/src/main/java/com/example/MainApplication.java b/example/android/app/src/main/java/com/example/MainApplication.java
index fd8ec88..5a9b52d 100644
--- a/example/android/app/src/main/java/com/example/MainApplication.java
+++ b/example/android/app/src/main/java/com/example/MainApplication.java
@@ -1,4 +1,4 @@
-package com.example;
+package com.uiwjs.example.alipay;
import android.app.Application;
import android.content.Context;
@@ -62,7 +62,7 @@ public class MainApplication extends Application implements ReactApplication {
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
- Class> aClass = Class.forName("com.example.ReactNativeFlipper");
+ Class> aClass = Class.forName("com.uiwjs.example.alipay.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
diff --git a/example/ios/example.xcodeproj/project.pbxproj b/example/ios/example.xcodeproj/project.pbxproj
index 2e20209..f0584d8 100644
--- a/example/ios/example.xcodeproj/project.pbxproj
+++ b/example/ios/example.xcodeproj/project.pbxproj
@@ -161,7 +161,6 @@
C40641DB7F56A684B820B607 /* Pods-example-tvOSTests.debug.xcconfig */,
9E02A36BA0975904A97235F2 /* Pods-example-tvOSTests.release.xcconfig */,
);
- name = Pods;
path = Pods;
sourceTree = "";
};
@@ -294,6 +293,7 @@
TestTargetID = 13B07F861A680F5B00A75B9A;
};
13B07F861A680F5B00A75B9A = {
+ DevelopmentTeam = 968DSZ49MT;
LastSwiftMigration = 1120;
};
2D02E47A1E0B4A5D006451C7 = {
@@ -660,6 +660,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 968DSZ49MT;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = example/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -668,7 +669,7 @@
"-ObjC",
"-lc++",
);
- PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
+ PRODUCT_BUNDLE_IDENTIFIER = com.uiwjs.example.alipay;
PRODUCT_NAME = example;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
@@ -683,6 +684,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 968DSZ49MT;
INFOPLIST_FILE = example/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
@@ -690,7 +692,7 @@
"-ObjC",
"-lc++",
);
- PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
+ PRODUCT_BUNDLE_IDENTIFIER = com.uiwjs.example.alipay;
PRODUCT_NAME = example;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";