commit 100: redirect from ch.tetr.io

This commit is contained in:
dan63047 2023-12-27 01:55:51 +03:00
parent 0b11d370fc
commit 0e54ffeaec
3 changed files with 8 additions and 3 deletions

View File

@ -18,7 +18,7 @@ jobs:
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
flutter-version: '3.10.5'
flutter-version: '3.16.5'
- name: Install project dependencies
run: flutter pub get
- name: Build artifacts
@ -50,7 +50,7 @@ jobs:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.10.5'
flutter-version: '3.16.5'
- run: flutter pub get
# - run: flutter test // lmao. Tests? Who needs it?
- run: flutter build apk --split-per-abi

View File

@ -28,7 +28,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="https://ch.tetr.io/" />
<data android:scheme="http" android:host="ch.tetr.io" />
<data android:scheme="https" />
</intent-filter>
</activity>

View File

@ -25,6 +25,7 @@ void setAccentColor(Color color){
}
final router = GoRouter(
//initialLocation: "/",
routes: [
GoRoute(
path: "/",
@ -47,6 +48,10 @@ final router = GoRouter(
builder: (_, __) => const CustomizationView(),
),
]
),
GoRoute(
path: "/u/:userId",
builder: (_, __) => MainView(player: __.pathParameters['userId'])
)
],
);