HMS-Core / hms-flutter-plugin

This repo contains all of Flutter HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
287 stars 147 forks source link

something wrong with configuration while upload the release apk to appgallery store #64

Closed mustafa-707 closed 3 years ago

mustafa-707 commented 3 years ago

Description i follow all the docs from huawei dev. website and from the flutter repo readme , but still i got a rejection for update hms services i only used this plugin : huawei_Iap, Huawei_account, Huawei_location with the following pic that's the reject message :

Screen Shot 2021-02-13 at 3 31 45 PM

Current behavior that's all my configration files :

build.gradle

buildscript {
    repositories {
        ..
        maven { url 'https://developer.huawei.com/repo/' }
        ..
    }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.2'
          ...
        classpath 'com.huawei.agconnect:agcp:1.4.2.301'
    }
    allprojects {
    repositories {
        ..
        maven { url 'https://developer.huawei.com/repo/' }
        ..
    }
    }

android build.gradle

...
apply plugin: 'com.huawei.agconnect'
...
    defaultConfig {
            resConfigs "ar", "en"
}
...
dependencies {
    implementation 'com.huawei.agconnect:agconnect-core:1.4.2.301'
    implementation 'com.huawei.hms:base:5.0.5.300'
    implementation 'com.huawei.hms:hwid:5.1.1.300'      
    implementation 'com.huawei.hms:iap:5.1.0.300'  
    implementation 'com.huawei.hms:appservice:5.0.4.302'  
    implementation 'com.huawei.hms:hianalytics:5.1.0.301'  
    implementation 'com.huawei.hms:location:5.1.0.300'  
}

proguard-rules.pro

-ignorewarnings 
-keepattributes *Annotation* 
-keepattributes Exceptions 
-keepattributes InnerClasses 
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable 
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.android.sdk.drm.**{*;}
-keep class com.huawei.agconnect.**{*;}
-keep class com.hianalytics.**{*;} 
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.hms.**{*;} 
-keep interface com.huawei.hms.analytics.type.HAEventType{*;}
-keep interface com.huawei.hms.analytics.type.HAParamType{*;}
-keep class com.huawei.hms.analytics.HiAnalyticsInstance{*;}
-keep class com.huawei.hms.analytics.HiAnalytics{*;}
-keepattributes EnclosingMethod

#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }
-dontwarn io.flutter.embedding.**
-keep class com.huawei.hms.flutter.** { *; }
-repackageclasses

i follow all this references

and till now i got the same reject , So i would be appreciate that , if anyone can help to avoid this kind of rejection

cagdasmer commented 3 years ago

Hello @mustafa-707 ,

It seems you are trying to utilize the AppGallery Kit for your application. Initialization API, CheckUpdate API and the others are in the scope of AppGallery Connect plugins, and therefore are outside the scope of HMS plugins.

Currently, you can ask your questions about the AppGallery in the AGC Flutter Demo repository.

mustafa-707 commented 3 years ago

thank you very much i will reach them to get a final solution , i solved it by remove my app from china in appgallery