braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

[Android] Build error: cannot find symbol "import com.appboy.ui.AppboyNavigator" #155

Closed toystars closed 2 years ago

toystars commented 2 years ago

Hi. I am running into some build issues after upgrading the library.

After upgrading from v1.32.0 to v1.36.0, the Android build fails with error messages as below:

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

error: cannot find symbol
import com.appboy.IAppboyNavigator;
                 ^

symbol:   class IAppboyNavigator
location: package com.appboy

error: package com.appboy.ui.actions does not exist
import com.appboy.ui.actions.NewsfeedAction;
                            ^

error: package com.appboy.ui.actions does not exist
import com.appboy.ui.actions.UriAction;
                            ^

error: cannot find symbol
import com.appboy.ui.AppboyNavigator;
                    ^

symbol:   class AppboyNavigator
location: package com.appboy.ui

error: cannot find symbol
AppboyNavigator.setAppboyNavigator(new IAppboyNavigator() {
                                             ^
  symbol:   class IAppboyNavigator
  location: class MainActivity

error: cannot find symbol
            public int getIntentFlags(IntentFlagPurpose intentFlagPurpose) {
                                      ^
  symbol: class IntentFlagPurpose

error: cannot find symbol
            public void gotoNewsFeed(Context context, NewsfeedAction newsfeedAction) {
                                                      ^
  symbol: class NewsfeedAction

error: cannot find symbol
            public void gotoUri(Context context, UriAction uriAction) {
                                                 ^
  symbol: class UriAction

error: method does not override or implement a method from a supertype
            @Override
            ^

error: cannot find symbol
              return new AppboyNavigator().getIntentFlags(intentFlagPurpose);
                         ^
  symbol: class AppboyNavigator

error: method does not override or implement a method from a supertype
            @Override
            ^

error: cannot find symbol
                new AppboyNavigator().gotoNewsFeed(context, newsfeedAction);
                    ^
  symbol: class AppboyNavigator

error: method does not override or implement a method from a supertype
            @Override
            ^

error: cannot find symbol
                    new AppboyNavigator().gotoUri(context, uriAction);
                        ^
  symbol: class AppboyNavigator

error: cannot find symbol
      AppboyNavigator.setAppboyNavigator(new IAppboyNavigator() {
      ^
  symbol:   variable AppboyNavigator
  location: class MainActivity

My RN version is: v0.66.4

radixdev commented 2 years ago

AppboyNavigator was replaced with BrazeDeeplinkHandler. Please see https://www.braze.com/docs/developer_guide/platform_integration_guides/android/advanced_use_cases/deep_linking/

radixdev commented 2 years ago

Hi @toystars ,

I'm closing this issue for now. Please let me know if you continue to have issues and we'll debug further.