Skip to content

Commit

Permalink
fix bluetooth not work
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Mar 7, 2024
1 parent ea5db6e commit 2a0a3d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ captures/
.idea/**
# Keep the code styles.
!/.idea/codeStyles
!.idea/codeStyles/Project.xml
!.idea/codeStyles/codeStyleConfig.xml
# Keep the inspection levels
!/.idea/inspectionProfiles
/.idea/inspectionProfiles/*
!/.idea/inspectionProfiles/Project_Default.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ dependencies {
implementation "com.github.netless-io:sync-player-android:1.2.1"
}

implementation 'io.agora.rtc:full-sdk:3.7.1'
implementation 'io.agora.rtc:full-sdk:3.7.2.1'
implementation 'com.github.agorabuilder:rtm-sdk:1.4.10'

// Exoplayer
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
xmlns:tools="http://schemas.android.com/tools"
package="io.agora.flat">

<uses-feature
android:name="android.hardware.camera"
android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<!-- Agora -->
<!--<uses-permission android:name="android.permission.INTERNET" />-->
Expand All @@ -13,6 +17,12 @@
<!-- Agora RTM -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Agora RTC BLUETOOTH -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<queries>
<package android:name="com.tencent.mm" />
<intent>
Expand Down

0 comments on commit 2a0a3d2

Please sign in to comment.