diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/.gitignore b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/.gitignore deleted file mode 100644 index a9dbb41..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.idea -.DS_Store -/build -/captures -.externalNativeBuild diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/Account_Demo.iml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/Account_Demo.iml deleted file mode 100644 index f47924a..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/Account_Demo.iml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/LICENSE b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/LICENSE deleted file mode 100644 index 82d0bd6..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018 HUAWEI - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README.md b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README.md deleted file mode 100644 index 406f92c..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README.md +++ /dev/null @@ -1,52 +0,0 @@ -# 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) - * [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, 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 - - 1. Check whether the Android studio development environment is ready. Open the sample code project directory with file "build.gradle" in Android Studio. Run TestApp on your divice or simulator which have installed latest Huawei Mobile Service(HMS). - 2. Register a [HUAWEI account](https://developer.huawei.com/consumer/en/). - 3. Create an app and configure the app information in AppGallery Connect. - See details: [HUAWEI Account Kit Development Preparations](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050048870) - 4. To build this demo, please first import the demo in the Android Studio (3.x+). - 5. Configure the sample code: - (1) Download the file "agconnect-services.json" of the app on AGC, and add the file to the app root directory(\app) of the demo. - (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. - - -## 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). diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README_ZH.md b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README_ZH.md deleted file mode 100644 index feb3a58..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/README_ZH.md +++ /dev/null @@ -1,42 +0,0 @@ -# 华为帐号服务客户端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)授权许可。 \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/.gitignore b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/LICENSE b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/LICENSE deleted file mode 100644 index 490b5c7..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/LICENSE +++ /dev/null @@ -1,53 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and -You must cause any modified files to carry prominent notices stating that You changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - -You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/Third Party Open Source Software Notice.pdf b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/Third Party Open Source Software Notice.pdf deleted file mode 100644 index 8b7ffc7..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/Third Party Open Source Software Notice.pdf and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/app.iml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/app.iml deleted file mode 100644 index f51c452..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/app.iml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/build.gradle b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/build.gradle deleted file mode 100644 index feb28ac..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/build.gradle +++ /dev/null @@ -1,57 +0,0 @@ -apply plugin: 'com.android.application' -apply plugin: 'com.huawei.agconnect' -android { - - signingConfigs { - release { - storeFile file("xxx.xxx") - keyAlias 'xxx' - keyPassword 'xxx' - storePassword 'xxx' - } - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - signingConfig signingConfigs.release - debuggable true - } - debug { - signingConfig signingConfigs.release - debuggable true - } - } - - compileSdkVersion 29 - buildToolsVersion "29.0.3" - defaultConfig { - applicationId "com.huawei.codelab.hwid" - minSdkVersion 19 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - - sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } -} - -dependencies { - ext.JUNIT_VERSION = '4.12' - ext.ESPRESSO_VERSION = '2.2.2' - - implementation fileTree(include: ['*.jar',], dir: 'libs') - implementation 'androidx.appcompat:appcompat:1.2.0' - implementation "com.google.code.gson:gson:2.8.5" - implementation 'com.huawei.hms:hwid:5.2.0.300' -} - -repositories { flatDir { dirs '../aars' } } diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/proguard-rules.pro b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/proguard-rules.pro deleted file mode 100644 index 6f34445..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/proguard-rules.pro +++ /dev/null @@ -1,26 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in D:\adt-bundle-windows-x86-20140702\sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} --ignorewarning --keepattributes *Annotation* --keepattributes Exceptions --keepattributes InnerClasses --keepattributes Signature --keepattributes SourceFile,LineNumberTable --keep class com.hianalytics.android.**{*;} --keep class com.huawei.updatesdk.**{*;} --keep class com.huawei.hms.**{*;} \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/AndroidManifest.xml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/AndroidManifest.xml deleted file mode 100644 index f8fb9bd..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/assets/ic_launcher-web.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/assets/ic_launcher-web.png deleted file mode 100644 index f877c31..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/assets/ic_launcher-web.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/AccountActivity.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/AccountActivity.java deleted file mode 100644 index 7ffcf10..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/AccountActivity.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.huawei.hmssample; - -import android.app.FragmentTransaction; -import android.content.Intent; -import android.os.Build; -import android.os.Bundle; -import android.text.TextUtils; -import android.view.View; -import android.view.View.OnClickListener; - -import com.huawei.hmf.tasks.OnFailureListener; -import com.huawei.hmf.tasks.OnSuccessListener; -import com.huawei.hmf.tasks.Task; -import com.huawei.hms.common.ApiException; -import com.huawei.hms.support.account.AccountAuthManager; -import com.huawei.hms.support.account.request.AccountAuthParams; -import com.huawei.hms.support.account.request.AccountAuthParamsHelper; -import com.huawei.hms.support.account.result.AuthAccount; -import com.huawei.hms.support.account.service.AccountAuthService; -import com.huawei.logger.Log; -import com.huawei.logger.LoggerActivity; - -/** - * Codelab - * Demonstration of HuaweiId - */ -public class AccountActivity extends LoggerActivity implements OnClickListener { - - //Log tag - public static final String TAG = "HuaweiIdActivity"; - private AccountAuthService mAuthManager; - private AccountAuthParams mAuthParam; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_account); - findViewById(R.id.account_signin).setOnClickListener(this); - findViewById(R.id.account_signout).setOnClickListener(this); - findViewById(R.id.account_signInCode).setOnClickListener(this); - findViewById(R.id.account_silent_signin).setOnClickListener(this); - findViewById(R.id.cancel_authorization).setOnClickListener(this); - //sample log Please ignore - addLogFragment(); - } - - @Override - protected void onStart() { - super.onStart(); - } - - @Override - protected void onStop() { - super.onStop(); - } - - @Override - protected void onDestroy() { - super.onDestroy(); - } - - /** - * Codelab Code - * Pull up the authorization interface by getSignInIntent - */ - private void signIn() { - mAuthParam = new AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM) - .setIdToken() - .setAccessToken() - .createParams(); - mAuthManager = AccountAuthManager.getService(AccountActivity.this, mAuthParam); - startActivityForResult(mAuthManager.getSignInIntent(), Constant.REQUEST_SIGN_IN_LOGIN); - } - - private void signInCode() { - mAuthParam = new AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM) - .setProfile() - .setAuthorizationCode() - .createParams(); - mAuthManager = AccountAuthManager.getService(AccountActivity.this, mAuthParam); - startActivityForResult(mAuthManager.getSignInIntent(), Constant.REQUEST_SIGN_IN_LOGIN_CODE); - } - - /** - * Codelab Code - * sign Out by signOut - */ - private void signOut() { - Task signOutTask = mAuthManager.signOut(); - signOutTask.addOnSuccessListener(new OnSuccessListener() { - @Override - public void onSuccess(Void aVoid) { - Log.i(TAG, "signOut Success"); - } - }).addOnFailureListener(new OnFailureListener() { - @Override - public void onFailure(Exception e) { - Log.i(TAG, "signOut fail"); - } - }); - } - - /** - * Codelab Code - * Silent SignIn by silentSignIn - */ - private void silentSignIn() { - Task task = mAuthManager.silentSignIn(); - task.addOnSuccessListener(new OnSuccessListener() { - @Override - public void onSuccess(AuthAccount authAccount) { - Log.i(TAG, "silentSignIn success"); - } - }); - task.addOnFailureListener(new OnFailureListener() { - @Override - public void onFailure(Exception e) { - //if Failed use getSignInIntent - if (e instanceof ApiException) { - ApiException apiException = (ApiException) e; - signIn(); - } - } - }); - } - - @Override - public void onClick(View v) { - switch (v.getId()) { - case R.id.account_signin: - signIn(); - break; - case R.id.account_signout: - signOut(); - break; - case R.id.account_signInCode: - signInCode(); - break; - case R.id.account_silent_signin: - silentSignIn(); - break; - case R.id.cancel_authorization: - cancelAuthorization(); - break; - default: - break; - } - } - - private void cancelAuthorization() { - mAuthParam = new AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM) - .setProfile() - .setAuthorizationCode() - .createParams(); - mAuthManager = AccountAuthManager.getService(AccountActivity.this, mAuthParam); - Task task = mAuthManager.cancelAuthorization(); - task.addOnSuccessListener(new OnSuccessListener() { - @Override - public void onSuccess(Void aVoid) { - Log.i(TAG, "cancelAuthorization success"); - } - }); - task.addOnFailureListener(new OnFailureListener() { - @Override - public void onFailure(Exception e) { - Log.i(TAG, "cancelAuthorization failure锛" + e.getClass().getSimpleName()); - } - }); - } - - @Override - protected void onActivityResult(int requestCode, int resultCode, Intent data) { - super.onActivityResult(requestCode, resultCode, data); - if (requestCode == Constant.REQUEST_SIGN_IN_LOGIN) { - //login success - //get user message by parseAuthResultFromIntent - Task authAccountTask = AccountAuthManager.parseAuthResultFromIntent(data); - if (authAccountTask.isSuccessful()) { - AuthAccount authAccount = authAccountTask.getResult(); - Log.i(TAG, authAccount.getDisplayName() + " signIn success "); - Log.i(TAG, "AccessToken: " + authAccount.getAccessToken()); - } else { - Log.i(TAG, "signIn failed: " + ((ApiException) authAccountTask.getException()).getStatusCode()); - } - } - if (requestCode == Constant.REQUEST_SIGN_IN_LOGIN_CODE) { - //login success - Task authAccountTask = AccountAuthManager.parseAuthResultFromIntent(data); - if (authAccountTask.isSuccessful()) { - AuthAccount authAccount = authAccountTask.getResult(); - Log.i(TAG, "signIn get code success."); - Log.i(TAG, "ServerAuthCode: " + authAccount.getAuthorizationCode()); - - /**** english doc:For security reasons, the operation of changing the code to an AT must be performed on your server. The code is only an example and cannot be run. ****/ - /**********************************************************************************************/ - } else { - Log.i(TAG, "signIn get code failed: " + ((ApiException) authAccountTask.getException()).getStatusCode()); - } - } - } - - /** - * sample log Please ignore - */ - private void addLogFragment() { - final FragmentTransaction transaction = getFragmentManager().beginTransaction(); - final LogFragment fragment = new LogFragment(); - transaction.replace(R.id.framelog, fragment); - transaction.commit(); - } - -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/Constant.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/Constant.java deleted file mode 100644 index df17931..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/Constant.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.huawei.hmssample; - -/** - * Request code - */ -public class Constant { - public static final int IS_LOG = 1; - //login - public static final int REQUEST_SIGN_IN_LOGIN = 1002; - //login by code - public static final int REQUEST_SIGN_IN_LOGIN_CODE = 1003; -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/LogFragment.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/LogFragment.java deleted file mode 100644 index 04350d2..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/hmssample/LogFragment.java +++ /dev/null @@ -1,108 +0,0 @@ -/* -Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ -package com.huawei.hmssample; - -import android.annotation.SuppressLint; -import android.app.Fragment; -import android.os.Bundle; -import android.text.Editable; -import android.text.TextWatcher; -import android.view.GestureDetector; -import android.view.LayoutInflater; -import android.view.MotionEvent; -import android.view.View; -import android.view.View.OnTouchListener; -import android.view.ViewGroup; -import android.widget.ScrollView; - -import com.huawei.logger.LogView; - -public class LogFragment extends Fragment { - - private LogView mLogView; - private ScrollView mScrollView; - - public LogFragment() { - } - - private View inflateViews() { - mScrollView = new ScrollView(getActivity()); - - mScrollView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, - ViewGroup.LayoutParams.MATCH_PARENT)); - - mLogView = new LogView(getActivity()); - mLogView.setClickable(true); - - mScrollView.addView(mLogView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, - ViewGroup.LayoutParams.WRAP_CONTENT)); - if (Constant.IS_LOG==0){ - mScrollView.setVisibility(View.GONE); - } - return mScrollView; - } - - @SuppressWarnings("deprecation") - @SuppressLint("ClickableViewAccessibility") - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - View result = inflateViews(); - - mLogView.addTextChangedListener(new TextWatcher() { - - @Override - public void beforeTextChanged(CharSequence s, int start, int count, int after) { - } - - @Override - public void onTextChanged(CharSequence s, int start, int before, int count) { - } - - @Override - public void afterTextChanged(Editable s) { - mScrollView.post(new Runnable() { - - @Override - public void run() { - mScrollView.fullScroll(ScrollView.FOCUS_DOWN); - } - - }); - } - - }); - - final GestureDetector gestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() { - public boolean onDoubleTap(MotionEvent e) { - mLogView.setText(""); - return true; - } - }); - - mLogView.setOnTouchListener(new OnTouchListener() { - public boolean onTouch(View v, MotionEvent event) { - return gestureDetector.onTouchEvent(event); - } - }); - - return result; - } - - public LogView getLogView() { - return mLogView; - } - -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/Log.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/Log.java deleted file mode 100644 index bbc1034..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/Log.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - -package com.huawei.logger; - -public class Log { - - public static interface LogNode { - - public void println(int priority, String tag, String msg, Throwable tr); - - } - - public static final int DEBUG = android.util.Log.DEBUG; - public static final int INFO = android.util.Log.INFO; - public static final int WARN = android.util.Log.WARN; - public static final int ERROR = android.util.Log.ERROR; - - private static LogNode mLogNode; - - public static LogNode getLogNode() { - return mLogNode; - } - - public static void setLogNode(LogNode node) { - mLogNode = node; - } - - public static void d(String tag, String msg, Throwable tr) { - println(DEBUG, tag, msg, tr); - } - - public static void d(String tag, String msg) { - d(tag, msg, null); - } - - public static void i(String tag, String msg, Throwable tr) { - println(INFO, tag, msg, tr); - } - - public static void i(String tag, String msg) { - i(tag, msg, null); - } - - public static void w(String tag, String msg, Throwable tr) { - println(WARN, tag, msg, tr); - } - - public static void w(String tag, String msg) { - w(tag, msg, null); - } - - public static void w(String tag, Throwable tr) { - w(tag, null, tr); - } - - public static void e(String tag, String msg, Throwable tr) { - println(ERROR, tag, msg, tr); - } - - public static void e(String tag, String msg) { - e(tag, msg, null); - } - - public static void println(int priority, String tag, String msg, Throwable tr) { - if (mLogNode != null) { - mLogNode.println(priority, tag, msg, tr); - } - } - - public static void println(int priority, String tag, String msg) { - println(priority, tag, msg, null); - } - -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogCatWrapper.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogCatWrapper.java deleted file mode 100644 index 2fbde4c..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogCatWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* -Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ -package com.huawei.logger; - -import com.huawei.logger.Log.LogNode; - -public class LogCatWrapper implements LogNode { - - private LogNode mNext; - - public LogNode getNext() { - return mNext; - } - - public void setNext(LogNode node) { - mNext = node; - } - - @Override - public void println(int priority, String tag, String msg, Throwable tr) { - String useMsg = msg; - if (useMsg == null) { - useMsg = ""; - } - - if (tr != null) { - useMsg += "\n" + android.util.Log.getStackTraceString(tr); - } - - android.util.Log.println(priority, tag, useMsg); - - if (mNext != null) { - mNext.println(priority, tag, msg, tr); - } - } - -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogView.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogView.java deleted file mode 100644 index 1cf7afd..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LogView.java +++ /dev/null @@ -1,123 +0,0 @@ -/* -Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ -package com.huawei.logger; - -import java.text.SimpleDateFormat; -import java.util.Date; - -import android.annotation.SuppressLint; -import android.app.Activity; -import android.content.Context; -import android.util.AttributeSet; -import android.widget.TextView; - -import com.huawei.logger.Log.LogNode; - -@SuppressLint("AppCompatCustomView") -public class LogView extends TextView implements LogNode { - - private LogNode mNext; - - public LogView(Context context) { - super(context); - } - - public LogView(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public LogView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - public LogNode getNext() { - return mNext; - } - - public void setNext(LogNode node) { - mNext = node; - } - - @Override - public void println(int priority, String tag, String msg, Throwable tr) { - - String priorityStr = null; - - switch (priority) { - case Log.DEBUG: - priorityStr = "D"; - break; - case Log.INFO: - priorityStr = "I"; - break; - case Log.WARN: - priorityStr = "W"; - break; - case Log.ERROR: - priorityStr = "E"; - break; - default: - break; - } - - String exceptionStr = null; - if (tr != null) { - exceptionStr = android.util.Log.getStackTraceString(tr); - } - - final StringBuilder outputBuilder = new StringBuilder(); - - //String delimiter = "|"; - //appendIfNotNull(outputBuilder, priorityStr, delimiter); - //appendIfNotNull(outputBuilder, tag, delimiter); - //appendIfNotNull(outputBuilder, msg, delimiter); - //appendIfNotNull(outputBuilder, exceptionStr, ""); - SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss"); - Date curDate = new Date(System.currentTimeMillis()); - String str = formatter.format(curDate); - outputBuilder.append(str); - outputBuilder.append(" "); - outputBuilder.append(msg); - outputBuilder.append("\r\n"); - - ((Activity) getContext()).runOnUiThread((new Thread(new Runnable() { - @Override - public void run() { - appendToLog(outputBuilder.toString()); - } - }))); - - if (mNext != null) { - mNext.println(priority, tag, msg, tr); - } - } - - public void appendToLog(String s) { - append("\n" + s); - } - - private StringBuilder appendIfNotNull(StringBuilder source, String addStr, String delimiter) { - if (addStr != null) { - if (addStr.length() == 0) { - delimiter = ""; - } - - return source.append(addStr).append(delimiter); - } - return source; - } - -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LoggerActivity.java b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LoggerActivity.java deleted file mode 100644 index c5061bc..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/java/com/huawei/logger/LoggerActivity.java +++ /dev/null @@ -1,41 +0,0 @@ -/* -Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ -package com.huawei.logger; - -import com.huawei.hmssample.LogFragment; -import com.huawei.hmssample.R; - -import android.app.Activity; - -public class LoggerActivity extends Activity{ - - @Override - protected void onStart() { - // TODO Auto-generated method stub - super.onStart(); - initializeLogging(); - } - - - private void initializeLogging() { - LogFragment logFragment = (LogFragment) getFragmentManager().findFragmentById(R.id.framelog); - - LogCatWrapper logcat = new LogCatWrapper(); - logcat.setNext(logFragment.getLogView()); - - Log.setLogNode(logcat); - } -} diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-hdpi/ic_launcher.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index f877c31..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-mdpi/ic_launcher.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index f877c31..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle.xml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle.xml deleted file mode 100644 index 5d3031c..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle_side.xml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle_side.xml deleted file mode 100644 index 6b07af4..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/bg_blue_circle_side.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_launcher.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index f877c31..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_push_notification.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_push_notification.png deleted file mode 100644 index ca25bad..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xhdpi/ic_push_notification.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index f877c31..0000000 Binary files a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/layout/activity_account.xml b/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/layout/activity_account.xml deleted file mode 100644 index fd54f0b..0000000 --- a/Account-Client-Java-Demo/Account_Demo_AndroidStudio/app/src/main/res/layout/activity_account.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - -