mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Rename package name
This commit is contained in:
@@ -36,7 +36,7 @@ def getExtOrIntegerDefault(name) {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.omni"
|
||||
namespace "dev.zoriya.omni"
|
||||
|
||||
ndkVersion getExtOrDefault("ndkVersion")
|
||||
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
||||
@@ -143,6 +143,6 @@ if (isNewArchitectureEnabled()) {
|
||||
react {
|
||||
jsRootDir = file("../src/")
|
||||
libraryName = "Omni"
|
||||
codegenJavaPackageName = "com.omni"
|
||||
codegenJavaPackageName = "dev.zoriya.omni"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.omni
|
||||
package dev.zoriya.omni
|
||||
|
||||
import android.graphics.Color
|
||||
import android.view.View
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.omni;
|
||||
package dev.zoriya.omni;
|
||||
|
||||
import com.facebook.react.bridge.NativeModule;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
@@ -77,9 +77,9 @@ android {
|
||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||
compileSdk rootProject.ext.compileSdkVersion
|
||||
|
||||
namespace "com.omniexample"
|
||||
namespace "dev.zoriya.omniexample"
|
||||
defaultConfig {
|
||||
applicationId "com.omniexample"
|
||||
applicationId "dev.zoriya.omniexample"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.omniexample
|
||||
package dev.zoriya.omniexample
|
||||
|
||||
import com.facebook.react.ReactActivity
|
||||
import com.facebook.react.ReactActivityDelegate
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.omniexample
|
||||
package dev.zoriya.omniexample
|
||||
|
||||
import android.app.Application
|
||||
import com.facebook.react.PackageList
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
"-ObjC",
|
||||
"-lc++",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.omniexample";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "dev.zoriya.omniexample";
|
||||
PRODUCT_NAME = OmniExample;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
@@ -300,7 +300,7 @@
|
||||
"-ObjC",
|
||||
"-lc++",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.omniexample";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "dev.zoriya.omniexample";
|
||||
PRODUCT_NAME = OmniExample;
|
||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||
SWIFT_VERSION = 5.0;
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ int initialize(JavaVM* vm) {
|
||||
}
|
||||
|
||||
struct JHybridOmniSpecImpl: public jni::JavaClass<JHybridOmniSpecImpl, JHybridOmniSpec::JavaPart> {
|
||||
static constexpr auto kJavaDescriptor = "Lcom/omni/HybridOmni;";
|
||||
static constexpr auto kJavaDescriptor = "Ldev/zoriya/omni/HybridOmni;";
|
||||
static std::shared_ptr<JHybridOmniSpec> create() {
|
||||
static const auto constructorFn = javaClassStatic()->getConstructor<JHybridOmniSpecImpl::javaobject()>();
|
||||
jni::local_ref<JHybridOmniSpec::JavaPart> javaPart = javaClassStatic()->newObject(constructorFn);
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import com.facebook.react.uimanager.StateWrapper
|
||||
import com.facebook.react.uimanager.ThemedReactContext
|
||||
import com.margelo.nitro.R.id.associated_hybrid_view_tag
|
||||
import com.margelo.nitro.views.RecyclableView
|
||||
import com.omni.*
|
||||
import dev.zoriya.omni.*
|
||||
|
||||
/**
|
||||
* Represents the React Native `ViewManager` for the "Omni" Nitro HybridView.
|
||||
|
||||
+8
-8
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"uiViewClassName": "Omni",
|
||||
"supportsRawText": false,
|
||||
"bubblingEventTypes": {},
|
||||
"directEventTypes": {},
|
||||
"validAttributes": {
|
||||
"isRed": true,
|
||||
"hybridRef": true
|
||||
}
|
||||
"uiViewClassName": "Omni",
|
||||
"supportsRawText": false,
|
||||
"bubblingEventTypes": {},
|
||||
"directEventTypes": {},
|
||||
"validAttributes": {
|
||||
"isRed": true,
|
||||
"hybridRef": true
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ const updateViewManagerFiles = async (file) => {
|
||||
const viewManagerStr = await readFile(viewManagerFile, { encoding: "utf8" });
|
||||
await writeFile(
|
||||
viewManagerFile,
|
||||
viewManagerStr.replace(/com\.margelo\.nitro\.omni\.\*/g, "com.omni.*"),
|
||||
viewManagerStr.replace(/com\.margelo\.nitro\.omni\.\*/g, "dev.zoriya.omni.*"),
|
||||
);
|
||||
};
|
||||
|
||||
@@ -49,6 +49,6 @@ const androidWorkaround = async () => {
|
||||
}
|
||||
|
||||
const str = await readFile(androidOnLoadFile, { encoding: "utf8" });
|
||||
await writeFile(androidOnLoadFile, str.replace(/margelo\/nitro\//g, ""));
|
||||
await writeFile(androidOnLoadFile, str.replace(/com\/margelo\/nitro\//g, "dev/zoriya/"));
|
||||
};
|
||||
androidWorkaround();
|
||||
|
||||
Reference in New Issue
Block a user