Skip to content

Commit

Permalink
remove. privacy project xcode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Mar 1, 2019
1 parent 87f956b commit 7f6ae6d
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 256 deletions.
23 changes: 22 additions & 1 deletion samples/simpleDemo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import React, {Component} from 'react';
import {
StyleSheet, Text, View, TouchableOpacity, TextInput
StyleSheet, Text, View, TouchableOpacity, TextInput,
PermissionsAndroid
} from 'react-native';
import AgoraRTCView from './components/agora';

Expand Down Expand Up @@ -69,6 +70,26 @@ export default class App extends Component<Props> {
})
}

async requestCameraAndAudioAndroidPermission() {
try {
const granted = await PermissionsAndroid.requestMultiple([
PermissionsAndroid.PERMISSIONS.CAMERA,
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
]);
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
console.log('You can use the camera');
} else {
console.log('Camera permission denied');
}
} catch (err) {
console.warn(err);
}
}

componentWillMount () {
this.requestCameraAndAudioAndroidPermission().then(_ => {});
}

render() {
if (this.state.showLive) {
console.log('channelName', this.state.channelName);
Expand Down
6 changes: 3 additions & 3 deletions samples/simpleDemo/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ PODS:
- AgoraRtcEngine_iOS (2.3.3)
- React (0.58.3):
- React/Core (= 0.58.3)
- react-native-agora (2.3.3-alpha.4):
- react-native-agora (2.3.3-alpha.5):
- AgoraRtcEngine_iOS (= 2.3.3)
- React
- react-native-agora/AgoraRtcCryptoLoader (= 2.3.3-alpha.4)
- react-native-agora/AgoraRtcCryptoLoader (2.3.3-alpha.4):
- react-native-agora/AgoraRtcCryptoLoader (= 2.3.3-alpha.5)
- react-native-agora/AgoraRtcCryptoLoader (2.3.3-alpha.5):
- AgoraRtcEngine_iOS (= 2.3.3)
- React
- React/Core (0.58.3):
Expand Down
Loading

0 comments on commit 7f6ae6d

Please sign in to comment.