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
39 changes: 23 additions & 16 deletions Account Kit/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
# Accountkit-Android-sample

English | [中文](https://github.com/HMS-Core/huawei-account-demo/blob/master/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README_ZH.md)


## Table of Contents

* [Introduction](#introduction)
* [Getting Started](#getting-started)
* [Supported Environments](#supported-environments)
* [Getting Started](#getting-started)
* [Result](#result)
* [License](#license)


## Introduction
Android sample code encapsulates APIs of the HUAWEI Account Kit server. It provides sample program for your reference or usage.
The following describes of Android sample code.

hmssample: Sample code packages. This package contains code that implements Sign, SignInCode and SignOut.
logger: This packages contains code that implements logger View.
Android sample code encapsulates APIs of the HUAWEI Account Kit server. It provides sample program for your reference or usage.
The following describes of Android sample code.

hmssample: Sample code packages. This package contains code that implements Sign, SignInCode, SilentSignIn, SignOut and CancelAuthorization.
logger: This packages contains code that implements logger View.


## Supported Environments
Android SDK Version >= 23 and JDK version >= 1.8 is recommended.


## Getting Started
Expand All @@ -30,16 +36,17 @@
(2) Change the value of applicationid in the app-level build.gradle file of the sample project to the package name of your app.
6. Run the sample on your Android device or emulator.


## Supported Environments
Android SDK Version >= 23 and JDK version >= 1.8 is recommended.

## Result
This demo provides demonstration for following scenarios:
1. ID-Token Mode Sign In. Sign in and Id-Token verification are both included.
2. Authorization Code Mode Sign In.
3. Sign out.
## Result
This demo provides demonstration for following scenarios:
1. ID-Token Mode Sign In.
2. Authorization Code Mode Sign In.
3. Silent Sign In.
4. Sign out.
5. Cancel Authorization.

![account sample result](images/account_sample_result.jpg)

## License
Account-kit Android sample is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

## License
Account-kit Android sample is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
42 changes: 42 additions & 0 deletions Account Kit/README_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ��Ϊ�ʺŷ���ͻ���Javaʾ������

���� | [English](https://github.com/HMS-Core/huawei-account-demo/blob/master/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README.md)

## Ŀ¼
* [���](#���)
* [����Ҫ��](#����Ҫ��)
* [����׼��](#����׼��)
* [����](#����)
* [��Ȩ����](#��Ȩ����)

## ���
Androidʾ������Ի�Ϊ�ʺŷ���HUAWEI Account Kit���Ŀͻ��˽ӿڽ��з�װ�������ḻ��ʾ�����򣬷������ο���ֱ��ʹ�á��������£�

hmssample��ʾ�����������ʵ�ֵ�¼����Ȩ��¼����Ĭ��¼���˳��ʺź��ʺ�ȡ����Ȩ���ܡ�
logger����ʵ����־��¼��

## ����Ҫ��
�Ƽ�ʹ��Android SDK 23�����ϰ汾��JDK 1.8�����ϰ汾��

## ����׼��
1. ���Android Studio���������Ƿ��������Android Studio�д򿪡�build.gradle���ļ����ڵ�ʾ�����빤��Ŀ¼���������Ѱ�װ���°滪Ϊ�ƶ�����HMS Core�����豸��ģ���������в���Ӧ�á�
2. ע��[��Ϊ�ʺ�](https://developer.huawei.com/consumer/cn/)��
3. ����Ӧ�ò���AppGallery Connect�����������Ϣ��������ο�[����׼��](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/config-agc-0000001050196065)��
4. ������ʾ��demoǰ�����Ƚ�demo����Android Studio��3.0�����ϰ汾����
5. ����ʾ�����룺
��1����AppGallery Connect������Ӧ�õġ�agconnect-services.json���ļ��������ļ�������Ӧ�ü���Ŀ¼�¡�
��2���޸�ʾ��������Ӧ�ü���build.gradle���ļ��еġ�applicationid��Ϊ���Լ���Ӧ�ð�����
6. ��Android�豸��ģ��������������Ӧ�á�

## ����
��ʾ�������ṩ������ʹ�ó�����
1. ID Tokenģʽ��¼��
2. Authorization Codeģʽ��¼��
3. ��Ĭ��¼��
4. �˳��ʺš�
5. �ʺ�ȡ����Ȩ��

![image.png](http://image.huawei.com/tiny-lts/v1/images/1159b3ee2b0003e52e27e0d41c0fe0d2_400x866.png@900-0-90-f.png)

## ��Ȩ����
��Ϊ�ʺŷ���Androidʾ�����뾭��[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)��Ȩ���ɡ�
Binary file not shown.
Binary file not shown.
Binary file modified Account Kit/images/account_sample_result.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Account Kit/java/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/local.properties
/.idea/workspace.xml
/.idea/libraries
.idea
.DS_Store
/build
/captures
Expand Down
41 changes: 24 additions & 17 deletions Account Kit/java/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
# Accountkit-Android-sample

English | [中文](https://github.com/HMS-Core/huawei-account-demo/blob/master/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README_ZH.md)


## Table of Contents

* [Introduction](#introduction)
* [Getting Started](#getting-started)
* [Supported Environments](#supported-environments)
* [Getting Started](#getting-started)
* [Result](#result)
* [License](#license)


## Introduction
Android sample code encapsulates APIs of the HUAWEI Account Kit server. It provides sample program for your reference or usage.
The following describes of Android sample code.
Android sample code encapsulates APIs of the HUAWEI Account Kit server. It provides sample program for your reference or usage.
The following describes of Android sample code.

hmssample: Sample code packages. This package contains code that implements Sign, SignInCode and SignOut.
logger: This packages contains code that implements logger View.
hmssample: Sample code packages. This package contains code that implements Sign, SignInCode, SilentSignIn, SignOut and CancelAuthorization.
logger: This packages contains code that implements logger View.


## Supported Environments
Android SDK Version >= 23 and JDK version >= 1.8 is recommended.


## Getting Started
Expand All @@ -30,16 +36,17 @@
(2) Change the value of applicationid in the app-level build.gradle file of the sample project to the package name of your app.
6. Run the sample on your Android device or emulator.


## Supported Environments
Android SDK Version >= 23 and JDK version >= 1.8 is recommended.

## Result
This demo provides demonstration for following scenarios:
1. ID-Token Mode Sign In. Sign in and Id-Token verification are both included.
2. Authorization Code Mode Sign In.
3. Sign out.
![account sample result](../images/account_sample_result.jpg)

## License
Account-kit Android sample is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
## Result
This demo provides demonstration for following scenarios:
1. ID-Token Mode Sign In.
2. Authorization Code Mode Sign In.
3. Silent Sign In.
4. Sign out.
5. Cancel Authorization.

![account sample result](images/account_sample_result.jpg)


## License
Account-kit Android sample is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
42 changes: 42 additions & 0 deletions Account Kit/java/README_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ��Ϊ�ʺŷ���ͻ���Javaʾ������

���� | [English](https://github.com/HMS-Core/huawei-account-demo/blob/master/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README.md)

## Ŀ¼
* [���](#���)
* [����Ҫ��](#����Ҫ��)
* [����׼��](#����׼��)
* [����](#����)
* [��Ȩ����](#��Ȩ����)

## ���
Androidʾ������Ի�Ϊ�ʺŷ���HUAWEI Account Kit���Ŀͻ��˽ӿڽ��з�װ�������ḻ��ʾ�����򣬷������ο���ֱ��ʹ�á��������£�

hmssample��ʾ�����������ʵ�ֵ�¼����Ȩ��¼����Ĭ��¼���˳��ʺź��ʺ�ȡ����Ȩ���ܡ�
logger����ʵ����־��¼��

## ����Ҫ��
�Ƽ�ʹ��Android SDK 23�����ϰ汾��JDK 1.8�����ϰ汾��

## ����׼��
1. ���Android Studio���������Ƿ��������Android Studio�д򿪡�build.gradle���ļ����ڵ�ʾ�����빤��Ŀ¼���������Ѱ�װ���°滪Ϊ�ƶ�����HMS Core�����豸��ģ���������в���Ӧ�á�
2. ע��[��Ϊ�ʺ�](https://developer.huawei.com/consumer/cn/)��
3. ����Ӧ�ò���AppGallery Connect�����������Ϣ��������ο�[����׼��](https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/config-agc-0000001050196065)��
4. ������ʾ��demoǰ�����Ƚ�demo����Android Studio��3.0�����ϰ汾����
5. ����ʾ�����룺
��1����AppGallery Connect������Ӧ�õġ�agconnect-services.json���ļ��������ļ�������Ӧ�ü���Ŀ¼�¡�
��2���޸�ʾ��������Ӧ�ü���build.gradle���ļ��еġ�applicationid��Ϊ���Լ���Ӧ�ð�����
6. ��Android�豸��ģ��������������Ӧ�á�

## ����
��ʾ�������ṩ������ʹ�ó�����
1. ID Tokenģʽ��¼��
2. Authorization Codeģʽ��¼��
3. ��Ĭ��¼��
4. �˳��ʺš�
5. �ʺ�ȡ����Ȩ��

![image.png](http://image.huawei.com/tiny-lts/v1/images/1159b3ee2b0003e52e27e0d41c0fe0d2_400x866.png@900-0-90-f.png)

## ��Ȩ����
��Ϊ�ʺŷ���Androidʾ�����뾭��[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)��Ȩ���ɡ�
Binary file not shown.
Binary file not shown.
Loading