Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ android {

dependencies {
implementation "com.facebook.react:react-native:+"
implementation 'co.nearbee:nearbeesdk:0.2.3'
implementation 'co.nearbee:nearbeesdk:2.1.32'
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-nearbee",
"version": "3.3.8",
"version": "3.3.10",
"description": "NearBee SDK for your react native applications",
"main": "index.js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
},
"license": "",
"peerDependencies": {
"react-native": "^0.63.2"
"react-native": "0.63.4"
},
"homepage": "https://github.com/Beaconstac/react-native-nearbee"
}
6 changes: 4 additions & 2 deletions sample_app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ export default class App extends Component {
// Checking all the states
if (!this.state.bluetoothPermission) {
this.requestBluetoothPermission();
} else if (!this.state.locationPermission) {
}
if (!this.state.locationPermission) {
this.requestLocationPermission();
} else {
}
if (this.state.bluetoothPermission && this.state.locationPermission){
this.initNearBee();
}
});
Expand Down
1 change: 1 addition & 0 deletions sample_app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permisssion.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permisssion.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permisssion.ACCESS_BACKGROUND_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:name=".MainApplication"
Expand Down
4 changes: 2 additions & 2 deletions sample_app/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ allprojects {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
maven {
url "https://dl.bintray.com/mobstac/maven"
maven {
url "https://mobstac.jfrog.io/artifactory/nearbee-gradle-release/"
}
google()
jcenter()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 4 additions & 4 deletions sample_app/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ target 'sample_app' do
use_react_native!(:path => config["reactNativePath"])
pod 'NearBee'
pod 'RNNearBee', :path => '../node_modules/react-native-nearbee'
pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral.podspec"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec"
pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral/Permission-BluetoothPeripheral.podspec"
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways/Permission-LocationAlways.podspec"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse/Permission-LocationWhenInUse.podspec"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications/Permission-Notifications.podspec"

end

Loading