Skip to content

Commit 485a01d

Browse files
committed
fix: android build
1 parent fc67ba8 commit 485a01d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+32
-7
lines changed

example/android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ android {
8686
buildToolsVersion rootProject.ext.buildToolsVersion
8787
compileSdk rootProject.ext.compileSdkVersion
8888

89-
namespace 'expo.modules.settingstwo.example'
89+
namespace 'expo.modules.speechrecognition.example'
9090
defaultConfig {
91-
applicationId 'expo.modules.settingstwo.example'
91+
applicationId 'expo.modules.speechrecognition.example'
9292
minSdkVersion rootProject.ext.minSdkVersion
9393
targetSdkVersion rootProject.ext.targetSdkVersion
9494
versionCode 1

example/android/app/src/main/AndroidManifest.xml

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET"/>
3+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
34
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
5+
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
46
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
57
<uses-permission android:name="android.permission.VIBRATE"/>
68
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
@@ -11,6 +13,18 @@
1113
<data android:scheme="https"/>
1214
</intent>
1315
</queries>
16+
<queries>
17+
<package android:name="com.google.android.googlequicksearchbox"/>
18+
<intent>
19+
<action android:name="android.speech.RecognitionService"/>
20+
</intent>
21+
</queries>
22+
<queries>
23+
<package android:name="com.google.android.tts"/>
24+
<intent>
25+
<action android:name="android.speech.RecognitionService"/>
26+
</intent>
27+
</queries>
1428
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true">
1529
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
1630
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>

example/android/app/src/main/java/expo/modules/speechrecognition/example/MainActivity.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package expo.modules.speechrecognition.example
2+
import expo.modules.splashscreen.SplashScreenManager
23

34
import android.os.Build
45
import android.os.Bundle
@@ -15,7 +16,10 @@ class MainActivity : ReactActivity() {
1516
// Set the theme to AppTheme BEFORE onCreate to support
1617
// coloring the background, status bar, and navigation bar.
1718
// This is required for expo-splash-screen.
18-
setTheme(R.style.AppTheme);
19+
// setTheme(R.style.AppTheme);
20+
// @generated begin expo-splashscreen - expo prebuild (DO NOT MODIFY) sync-f3ff59a738c56c9a6119210cb55f0b613eb8b6af
21+
SplashScreenManager.registerOnActivity(this)
22+
// @generated end expo-splashscreen
1923
super.onCreate(null)
2024
}
2125

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
22
<item android:drawable="@color/splashscreen_background"/>
3+
<item>
4+
<bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
5+
</item>
36
</layer-list>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

example/android/app/src/main/res/values/styles.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<item name="android:textColorHint">#c8c8c8</item>
1212
<item name="android:textColor">@android:color/black</item>
1313
</style>
14-
<style name="Theme.App.SplashScreen" parent="AppTheme">
15-
<item name="android:windowBackground">@drawable/splashscreen</item>
14+
<style name="Theme.App.SplashScreen" parent="Theme.SplashScreen">
15+
<item name="windowSplashScreenBackground">@color/splashscreen_background</item>
16+
<item name="windowSplashScreenAnimatedIcon">@drawable/splashscreen_logo</item>
17+
<item name="postSplashScreenTheme">@style/AppTheme</item>
1618
</style>
1719
</resources>

example/android/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ EX_DEV_CLIENT_NETWORK_INSPECTOR=true
5454

5555
# Use legacy packaging to compress native libraries in the resulting APK.
5656
expo.useLegacyPackaging=false
57+
58+
android.extraMavenRepos=[]
130 Bytes
Binary file not shown.

example/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
2121
}
2222
}
2323

24-
rootProject.name = 'expo-settings-two-example'
24+
rootProject.name = 'expo-speech-recognition-example'
2525

2626
dependencyResolutionManagement {
2727
versionCatalogs {

0 commit comments

Comments
 (0)