From 926a2d475664fe8b7d4848396d20406a0f68a967 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 13 Jun 2022 21:34:07 -0500 Subject: [PATCH] Add deep links (android) --- android/app/build.gradle | 2 +- android/app/src/main/AndroidManifest.xml | 9 +++++++++ android/build.gradle | 2 +- src/routes/index.tsx | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index f0782b8b..0920a076 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -135,7 +135,7 @@ android { compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { - applicationId "com.app" + applicationId "xyz.blueskyweb.pubsq" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d28d40fd..38d83125 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -21,6 +21,15 @@ + + + + + + + + + diff --git a/android/build.gradle b/android/build.gradle index 5dfc68a6..e997cb0e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,7 +22,7 @@ buildscript { mavenCentral() } 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("de.undercouch:gradle-download-task:4.1.2") // NOTE: Do not place your application dependencies here; they belong diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 5084473e..2accd6fb 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -51,7 +51,7 @@ const tabBarScreenOptions = ({ headerShown: false, tabBarIcon: (_state: {focused: boolean; color: string; size: number}) => { // TODO: icons - return {route.name.at(0)} + return {route.name?.[0] || ''} }, })