浏览代码

update doc

/unity2020
siyao 3 年前
当前提交
c5907841
共有 26 个文件被更改,包括 112 次插入104 次删除
  1. 14
      Documentation/analyticskit.md
  2. 11
      Documentation/apm.md
  3. 2
      Documentation/applinking.md
  4. 4
      Documentation/appmessaging.md
  5. 3
      Documentation/auth.md
  6. 8
      Documentation/clouddb.md
  7. 6
      Documentation/cloudfunctions.md
  8. 7
      Documentation/cloudstorage.md
  9. 16
      Documentation/cn/Documentation/analyticskit.md
  10. 16
      Documentation/cn/Documentation/apm.md
  11. 2
      Documentation/cn/Documentation/applinking.md
  12. 4
      Documentation/cn/Documentation/appmessaging.md
  13. 6
      Documentation/cn/Documentation/auth.md
  14. 8
      Documentation/cn/Documentation/clouddb.md
  15. 8
      Documentation/cn/Documentation/cloudfunctions.md
  16. 5
      Documentation/cn/Documentation/cloudstorage.md
  17. 4
      Documentation/cn/Documentation/crash.md
  18. 16
      Documentation/cn/Documentation/index.md
  19. 16
      Documentation/cn/Documentation/locationkit.md
  20. 16
      Documentation/cn/Documentation/pushkit.md
  21. 2
      Documentation/cn/Documentation/remoteconfiguration.md
  22. 4
      Documentation/crash.md
  23. 12
      Documentation/index.md
  24. 12
      Documentation/locationkit.md
  25. 12
      Documentation/pushkit.md
  26. 2
      Documentation/remoteconfiguration.md

14
Documentation/analyticskit.md


implementation project(':unityLibrary')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:hianalytics:5.1.0.300'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```

11
Documentation/apm.md


dependencies {
// ...
// Add APM SDK library dependency
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300'
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.305'
}
```

```
apply plugin: 'com.android.application'
// Apply the APM plugin
apply plugin: 'com.huawei.agconnect.apms'
agcp {
enableAPMS true
}
dependencies {
// ..

dependencies {
// ...
// Add APM SDK library dependency
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.305'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
}
```

2
Documentation/applinking.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-applinking:1.6.1.300'
}
```

4
Documentation/appmessaging.md


```
dependencies {
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300"
implementation "com.huawei.agconnect:agconnect-appmessaging:1.6.1.300"
}
```

```
dependencies {
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300"
implementation "com.huawei.agconnect:agconnect-appmessaging:1.6.1.300"
}
```

3
Documentation/auth.md


```
dependencies {
...
implementation 'com.huawei.agconnect:agconnect-auth:1.4.2.301'
implementation 'com.huawei.agconnect:agconnect-credential:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
...
}
```

8
Documentation/clouddb.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-database:1.2.2.301"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-cloud-database:1.5.0.300"
...
}

...
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-database:1.2.2.301"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-cloud-database:1.5.0.300"
...
}

6
Documentation/cloudfunctions.md


```
dependencies {
implementation "com.huawei.agconnect:agconnect-function:1.4.2.300"
implementation "com.huawei.agconnect:agconnect-function:1.6.1.300"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'

...
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-function:1.4.2.300"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-function:1.6.1.300"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'

7
Documentation/cloudstorage.md


Add the Maven repository address of the Cloud Storage SDK to the app-level `launcherTemplate.gradle` file (usually in the app directory).
```
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.100"
implementation 'com.huawei.agconnect:agconnect-core:1.4.2.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.4.2.301'
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.200"
implementation 'com.huawei.agconnect:agconnect-core:1.4.2.300'
implementation 'com.huawei.agconnect:agconnect-credential:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
```
4. To read and write files and access the network, you need to configure the following permissions in the `AndroidMainfest.xml` file:

16
Documentation/cn/Documentation/analyticskit.md


implementation 'com.huawei.hms:hianalytics:5.1.0.300'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```
5. 创建Signature

16
Documentation/cn/Documentation/apm.md


dependencies {
// ...
// Add APM SDK library dependency
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.305'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
}
```

```
apply plugin: 'com.android.application'
// Apply the APM plugin
apply plugin: 'com.huawei.agconnect.apms'
agcp {
enableAPMS true
}
dependencies {
// ..
}

// To benefit from the latest APM feaures, update your Android Gradle Plugin dependency to at least v3.3.2
classpath 'com.android.tools.build:gradle:3.3.2'
// Add the dependency for the APM plugin
classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.4.1.303'
}
}
```

dependencies {
// ...
// Add APM SDK library dependency
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.305'
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.303'
}
```

2
Documentation/cn/Documentation/applinking.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-applinking:1.6.1.300'
...
}
```

4
Documentation/cn/Documentation/appmessaging.md


```
dependencies {
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300"
implementation "com.huawei.agconnect:agconnect-appmessaging:1.6.1.300"
}
```

```
dependencies {
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300"
implementation "com.huawei.agconnect:agconnect-appmessaging:1.6.1.300"
}
```

6
Documentation/cn/Documentation/auth.md


dependencies {
...
implementation 'com.huawei.agconnect:agconnect-core:1.4.2.301'
implementation 'com.huawei.agconnect:agconnect-auth:1.4.2.301'
implementation 'com.huawei.agconnect:agconnect-credential:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
...
}
```

```
dependencies {
...
implementation 'com.huawei.agconnect:agconnect-auth:1.4.2.301'
implementation 'com.huawei.agconnect:agconnect-credential:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
...
}
```

8
Documentation/cn/Documentation/clouddb.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-database:1.2.2.301"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-cloud-database:1.5.0.300"
...
}
```

...
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-database:1.2.2.301"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-cloud-database:1.5.0.300"
...
}

8
Documentation/cn/Documentation/cloudfunctions.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-function:1.4.2.300"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-function:1.6.1.300"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'

...
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation "com.huawei.agconnect:agconnect-function:1.4.2.300"
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation "com.huawei.agconnect:agconnect-function:1.6.1.300"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5'

5
Documentation/cn/Documentation/cloudstorage.md


将Cloud Storage SDK的Maven存储库地址添加到app级别的`launcherTemplate.gradle`文件(通常在app目录中)。
```
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.100"
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.200"
implementation 'com.huawei.agconnect:agconnect-auth:1.4.2.301'
implementation 'com.huawei.agconnect:agconnect-credential:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-auth:1.6.1.300'
```
4. 要读取和写入文件并访问网络,您需要在`AndroidMainfest.xml`文件中配置以下权限:

4
Documentation/cn/Documentation/crash.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.6.1.300'
...
}
```

//AGC SDK and Crash SDK integrated configuration
implementation 'com.huawei.hms:hianalytics:5.0.5.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.4.2.300'
...
}

16
Documentation/cn/Documentation/index.md


implementation 'com.huawei.hms:hianalytics:5.1.0.300'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```
5. 创建Signature

16
Documentation/cn/Documentation/locationkit.md


implementation 'com.huawei.hms:hianalytics:5.1.0.300'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```
5. 创建Signature

16
Documentation/cn/Documentation/pushkit.md


implementation 'com.huawei.hms:hianalytics:5.1.0.300'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```
5. 创建Signature

2
Documentation/cn/Documentation/remoteconfiguration.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.6.1.300'
...
}
```

4
Documentation/crash.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.6.1.300'
}
```

//AGC SDK and Crash SDK integrated configuration
implementation 'com.huawei.hms:hianalytics:5.0.5.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-crash:1.6.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.4.2.300'
...
}

12
Documentation/index.md


implementation 'com.huawei.hms:ads-lite:13.4.29.303'
implementation 'com.huawei.hms:ads-consent:3.4.30.301'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```

12
Documentation/locationkit.md


implementation project(':unityLibrary')
implementation 'com.huawei.hms:location:5.0.0.302'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```

12
Documentation/pushkit.md


implementation project(':unityLibrary')
implementation 'com.huawei.hms:push:4.0.3.301'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
}
```

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-core:1.2.0.300'
implementation 'com.huawei.hms:base:4.0.1.300'
implementation 'com.huawei.hms:hwid:4.0.1.300'
implementation 'com.huawei.hms:game:4.0.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:hwid:6.1.0.303'
implementation 'com.huawei.hms:game:6.1.0.301'
**DEPS**}
```

2
Documentation/remoteconfiguration.md


```
dependencies {
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.6.1.300'
}
```

正在加载...
取消
保存