Skip to content

Commit

Permalink
chore(huawei): update huawei dependencies
Browse files Browse the repository at this point in the history
SUITEDEV-29797

Co-authored-by: LasOri <[email protected]>
Co-authored-by: LordAndras <[email protected]>
  • Loading branch information
3 people committed Dec 16, 2021
1 parent 144f3b7 commit 8314c93
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version '1.0-SNAPSHOT'
buildscript {
ext.gradle_version = '7.0.1'
ext.kotlin_version = '1.5.30'
ext.agconnect_version = '1.6.0.300'
ext.agconnect_version = '1.6.2.300'
repositories {
google()
mavenCentral()
Expand Down
1 change: 1 addition & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.huawei.agconnect'

android {
compileSdkVersion 31
Expand Down
24 changes: 13 additions & 11 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@
<meta-data
android:name="push_kit_auto_init_enabled"
android:value="false" />

<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize"
android:exported="true">
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />

<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
Expand Down Expand Up @@ -64,16 +65,17 @@
<action android:name="com.huawei.push.action.MESSAGING_EVENT" />
</intent-filter>
</service>

<provider
android:name="com.emarsys.provider.SharedHardwareIdentificationContentProvider"
android:authorities="${applicationId}"
android:enabled="true"
android:exported="true"
android:grantUriPermissions="true" />
android:name="com.emarsys.provider.SharedHardwareIdentificationContentProvider"
android:authorities="${applicationId}"
android:enabled="true"
android:exported="true"
android:grantUriPermissions="true" />
</application>

<queries>
<package android:name="com.emarsys.sample" />
</queries>
<queries>
<package android:name="com.emarsys.sample" />
</queries>

</manifest>
2 changes: 2 additions & 0 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ buildscript {
repositories {
google()
jcenter()
maven { url 'https://developer.huawei.com/repo/' }
}

dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.gms:google-services:$google_services_version"
classpath 'com.huawei.agconnect:agcp:1.6.2.300'
}
}

Expand Down

0 comments on commit 8314c93

Please sign in to comment.