Skip to content

Commit

Permalink
Fix uni_links http
Browse files Browse the repository at this point in the history
  • Loading branch information
PalMit2002 committed Aug 2, 2022
1 parent 9e88a71 commit 98652f7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
62 changes: 31 additions & 31 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

<application
android:icon="@mipmap/ic_launcher_round"
<application android:icon="@mipmap/ic_launcher_round"
android:label="InstiApp"
android:roundIcon="@mipmap/ic_launcher_round"
android:usesCleartextTraffic="true">


<activity
android:name=".MessMenuWidgetWithHostelConfigureActivity"
<activity android:name=".MessMenuWidgetWithHostelConfigureActivity"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
Expand All @@ -40,20 +38,16 @@
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/mess_menu_widget_info" />
</receiver>

<meta-data
android:name="flutterEmbedding"
<meta-data android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="com.google.android.geo.API_KEY"
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyAryoUjEhGTWvgrInX1rDAR3D3DEXD5Z7M" />

<activity
android:name=".MainActivity"
<activity android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
Expand All @@ -73,8 +67,7 @@


<!-- Theme to apply as soon as Flutter begins rendering frames -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
<meta-data android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />

<intent-filter>
Expand All @@ -87,50 +80,57 @@

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<!-- <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" />
TODO: Add correct url here
<data android:scheme="http" android:host="10.59.0.86:4200" />
</intent-filter> -->
<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" />
<!-- TODO: Add correct url here -->
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="www.techgatha.com" />
</intent-filter>
<!-- <intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<data
android:host="insti.app"
android:pathPattern="/org/.*"
android:scheme="https" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="insti.app" android:pathPattern="/org/.*" android:scheme="https" />
</intent-filter>
<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" />
<data
android:host="insti.app"
android:pathPattern="/user/.*"
android:scheme="https" />
<data android:host="insti.app" android:pathPattern="/user/.*" android:scheme="https" />
</intent-filter>
<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" />
<data
android:host="insti.app"
android:pathPattern="/event/.*"
android:scheme="https" />
<data android:host="insti.app" android:pathPattern="/event/.*" android:scheme="https" />
</intent-filter>
<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" />
<data
android:host="insti.app"
android:pathPattern="/map.*"
android:scheme="https" />
</intent-filter>
<data android:host="insti.app" android:pathPattern="/map.*" android:scheme="https" />
</intent-filter> -->
</activity>
</application>

Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx1024m
android.enableR8=true
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,11 @@ class MyAppState extends State<MyApp> with WidgetsBindingObserver {
Future initAppLinksState() async {
_appLinksSub = uriLinkStream.listen((Uri? uri) {
if (!mounted) return;
print(uri);
handleAppLink(uri);
}, onError: (err) {
if (!mounted) return;
// print('Failed to get latest link: $err.');
print('Failed to get latest link: $err.');
});
try {
Uri? initialUri = await getInitialUri();
Expand Down

0 comments on commit 98652f7

Please sign in to comment.