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

View File

@ -28,7 +28,7 @@
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <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" /> <data android:scheme="https" />
</intent-filter> </intent-filter>
</activity> </activity>

View File

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