Skip to content

Commit

Permalink
test(android): manually link RN permissions library.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Jan 12, 2024
1 parent 79abb0a commit 1dcfa6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions detox/test/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ dependencies {
implementation project(':react-native-community-geolocation')
implementation project(':react-native-datetimepicker')
implementation project(':react-native-launcharguments')
implementation project(':react-native-permissions')

androidTestImplementation(project(path: ':detox'))
androidTestImplementation 'com.linkedin.testbutler:test-butler-library:2.2.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.reactnativecommunity.slider.ReactSliderPackage;
import com.reactnativecommunity.webview.RNCWebViewPackage;
import com.reactnativelauncharguments.LaunchArgumentsPackage;
import com.zoontek.rnpermissions.RNPermissionsPackage;

import java.util.Arrays;
import java.util.List;
Expand All @@ -24,7 +25,8 @@ public static List<ReactPackage> getManualLinkPackages() {
new AsyncStoragePackage(),
new ReactCheckBoxPackage(),
new RNDateTimePickerPackage(),
new LaunchArgumentsPackage()
new LaunchArgumentsPackage(),
new RNPermissionsPackage()
);
}
}
3 changes: 3 additions & 0 deletions detox/test/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ project(':react-native-datetimepicker').projectDir = new File(rootProject.projec

include ':react-native-launcharguments'
project(':react-native-launcharguments').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-launch-arguments/android')

include ':react-native-permissions'
project(':react-native-permissions').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-permissions/android')

0 comments on commit 1dcfa6a

Please sign in to comment.