Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
921 changes: 921 additions & 0 deletions .idea/caches/deviceStreaming.xml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions agconnect_applinking/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ android {
compileSdkVersion 30
buildToolsVersion = '30.0.3'

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agc.flutter.applinking'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions agconnect_appmessaging/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agc.flutter.appmessaging.agconnect_appmessaging'
}

defaultConfig {
minSdkVersion 19
Expand Down
4 changes: 4 additions & 0 deletions agconnect_auth/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnectauth'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down
7 changes: 6 additions & 1 deletion agconnect_clouddb/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ apply plugin: "com.android.library"
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnectclouddb'
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 29
Expand All @@ -38,6 +43,6 @@ android {
}
}

dependencies {
dependencies {
implementation "com.huawei.agconnect:agconnect-cloud-database:1.9.1.300"
}
4 changes: 4 additions & 0 deletions agconnect_cloudfunctions/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.1"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agc.flutter.cloudfunctions'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down
4 changes: 4 additions & 0 deletions agconnect_core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnectcore'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down
6 changes: 5 additions & 1 deletion agconnect_crash/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.4'
classpath 'com.android.tools.build:gradle:8.1.4'
}
}

Expand All @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnectcrash'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

public class AGConnectCrashPlugin implements FlutterPlugin, MethodCallHandler {
private MethodChannel channel;
Expand All @@ -45,11 +44,6 @@ public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBindin
channel.setMethodCallHandler(this);
}

public static void registerWith(Registrar registrar) {
initAGConnectSDK(registrar.context().getApplicationContext());
final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.huawei.flutter/agconnect_crash");
channel.setMethodCallHandler(new AGConnectCrashPlugin());
}

static void initAGConnectSDK(Context context) {
if (AGConnectInstance.getInstance() == null) {
Expand Down
6 changes: 5 additions & 1 deletion agconnect_remote_config/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:8.1.4'
}
}

Expand All @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnectremoteconfig'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,23 @@
import java.util.Map;

import androidx.annotation.NonNull;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

public class AGConnectRemoteConfigPlugin implements FlutterPlugin, MethodCallHandler {
private MethodChannel channel;

@Override
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
initAGConnectSDK(flutterPluginBinding.getApplicationContext());
channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(),
"com.huawei.flutter/agconnect_remote_config");
channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), "com.huawei.flutter/agconnect_remote_config");
channel.setMethodCallHandler(this);
}

public static void registerWith(Registrar registrar) {
initAGConnectSDK(registrar.context().getApplicationContext());
final MethodChannel channel = new MethodChannel(registrar.messenger(),
"com.huawei.flutter/agconnect_remote_config");
channel.setMethodCallHandler(new AGConnectRemoteConfigPlugin());
}

static void initAGConnectSDK(Context context) {
if (AGConnectInstance.getInstance() == null) {
AGConnectInstance.initialize(context);
Expand Down Expand Up @@ -95,9 +87,7 @@ public void onFailure(Exception e) {
if (e instanceof AGCConfigException) {
AGCConfigException exception = (AGCConfigException) e;
HashMap<String, Object> detail = new HashMap<>();
detail.put(
"throttleEndTime",
exception.getThrottleEndTimeMillis());
detail.put("throttleEndTime", exception.getThrottleEndTimeMillis());
result.error(String.valueOf(exception.getCode()), exception.getErrMsg(), detail);
} else if (e instanceof AGCException) {
AGCException exception = (AGCException) e;
Expand Down
4 changes: 4 additions & 0 deletions agconnect_storage/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

if (project.android.hasProperty("namespace")) {
namespace 'com.huawei.agconnect.cloudstorage'
}

defaultConfig {
minSdkVersion 18
targetSdkVersion 30
Expand Down