Add deep links (android)

zio/stable
Paul Frazee 2022-06-13 21:34:07 -05:00
parent 012af05ab8
commit 926a2d4756
4 changed files with 12 additions and 3 deletions

View File

@ -135,7 +135,7 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig { defaultConfig {
applicationId "com.app" applicationId "xyz.blueskyweb.pubsq"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1 versionCode 1

View File

@ -21,6 +21,15 @@
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
<!-- deep linking via web links -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- debug host: https://pubsq.pfrazee.com -->
<data android:scheme="https" />
<data android:host="pubsq.pfrazee.com" />
</intent-filter>
</activity> </activity>
</application> </application>
</manifest> </manifest>

View File

@ -22,7 +22,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath("com.android.tools.build:gradle:7.0.4") classpath('com.android.tools.build:gradle:7.2.1')
classpath("com.facebook.react:react-native-gradle-plugin") classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:4.1.2") classpath("de.undercouch:gradle-download-task:4.1.2")
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

View File

@ -51,7 +51,7 @@ const tabBarScreenOptions = ({
headerShown: false, headerShown: false,
tabBarIcon: (_state: {focused: boolean; color: string; size: number}) => { tabBarIcon: (_state: {focused: boolean; color: string; size: number}) => {
// TODO: icons // TODO: icons
return <Text>{route.name.at(0)}</Text> return <Text>{route.name?.[0] || ''}</Text>
}, },
}) })