Skip to content

Commit

Permalink
fix: fix paths to java classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Андрей Непеин committed Dec 16, 2022
1 parent d5a5c1a commit f307674
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
Expand Up @@ -41,7 +41,7 @@ protected synchronized void maybeLoadOtherSoLibraries() {
if (!sIsSoLibraryLoaded) {
// If you change the name of your application .so file in the Android.mk file,
// make sure you update the name here as well.
SoLoader.loadLibrary("rndiffapp_appmodules");
SoLoader.loadLibrary("reactnativeinappupdate_appmodules");
sIsSoLibraryLoaded = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/jni/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.13)
# Define the library name here.
project(rndiffapp_appmodules)
project(reactnativeinappupdate_appmodules)
# This file includes all the necessary to let you build your application with the New Architecture.
include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)
Expand Up @@ -12,7 +12,7 @@ class MainApplicationTurboModuleManagerDelegate
public:
// Adapt it to the package you used for your Java class.
static constexpr auto kJavaDescriptor =
"Lcom/rndiffapp/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
"Lcom/example/reactnativeinappupdate/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;";
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject>);
static void registerNatives();
std::shared_ptr<TurboModule> getTurboModule(
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/jni/MainComponentsRegistry.h
Expand Up @@ -10,7 +10,7 @@ class MainComponentsRegistry
public:
// Adapt it to the package you used for your Java class.
constexpr static auto kJavaDescriptor =
"Lcom/rndiffapp/newarchitecture/components/MainComponentsRegistry;";
"Lcom/example/reactnativeinappupdate/newarchitecture/components/MainComponentsRegistry;";
static void registerNatives();
MainComponentsRegistry(ComponentFactory *delegate);
private:
Expand Down
3 changes: 1 addition & 2 deletions example/android/build.gradle
Expand Up @@ -20,7 +20,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.2.2")
classpath('com.android.tools.build:gradle:7.2.2')
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:5.0.1")

Expand Down Expand Up @@ -51,7 +51,6 @@ allprojects {

google()
mavenCentral()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
4 changes: 2 additions & 2 deletions example/android/gradle.properties
Expand Up @@ -19,7 +19,7 @@

android.useAndroidX=true
android.enableJetifier=true
FLIPPER_VERSION=0.125.0
FLIPPER_VERSION=0.176.0

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
Expand All @@ -31,4 +31,4 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true
2 changes: 1 addition & 1 deletion example/ios/InAppUpdateExample/AppDelegate.m
Expand Up @@ -44,7 +44,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
#endif

NSDictionary *initProps = [self prepareInitialProps];
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"RnDiffApp", initProps);
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"InAppUpdateExample", initProps);

if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
Expand Down

0 comments on commit f307674

Please sign in to comment.