Giter Site home page Giter Site logo

nicolastinkl / androidkg-sdk Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 149.69 MB

基于Qiniu SDK 定制开发的Android H5开关,提供Shell脚本快速集成一个新app,100%过审率。

Shell 0.14% Java 96.76% Kotlin 1.16% HTML 0.27% CSS 0.61% JavaScript 1.06%

androidkg-sdk's Introduction

Switch-H5 SDK for Android

Install

Operating environment

Qiniu SDK version Minimum Android version Dependent library version
8.5.2 Android 4.0+ okhttp 4+
8.5.1 Android 4.0+ okhttp 4+
8.5.0 Android 4.0+ okhttp 4+
8.4.* Android 4.0+ okhttp 4+
8.3.2 Android 4.0+ okhttp 4+
8.3.1 Android 4.0+ okhttp 4+
8.3.0 Android 5.0+ okhttp 4+
8.2.x Android 5.0+ okhttp 4+
8.1.x Android 5.0+ okhttp 4+
8.0.x Android 5.0+ okhttp 4+
7.7.x Android 5.0+ okhttp 4+
7.6.x Android 5.0+ okhttp 4+
7.5.x Android 5.0+ okhttp 4+
7.4.6 Android 4.0+ okhttp 3.12.6
7.3.x Android 2.3+ okhttp 3.11.0
7.2.x Android 2.3+ okhttp 3+
7.1.x Android 2.3+ okhttp 2.6+
7.0.8,7.0.9 Android 2.2+ android-async-http 1.4.9
7.0.7 Android 2.2+ android-async-http 1.4.8

Notice

  • The latest version is recommended: 8.5.2
  • 7.6.2 ~ 8.3.2 AndroidNetwork.getMobileDbm() can get the signal strength of the mobile phone, and the following permissions are required (effective when API>=18)
   <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  • Added DNS prefetching and caching strategy from 7.5.0 to reduce dns parsing errors
  • If the area can be specified, it is best to specify a fixed area, which can save one step of network request and the possibility of one step of error.
  • If you use Android 4.x, please adjust the corresponding okhttp version to 3.12.+

Direct installation

Copy the sdk jar file to the project, jar package download address, download the corresponding jar package , and search and download the corresponding dependent library

happy-dns download address

Instructions

1 : copy mylibrary to your project

add code : include ':mylibrary' to settings.grddle

2: integration code to your project

UploadManager can be created once and used all the time. 7.6.2 ~ 8.3.2 will call AndroidNetwork.getMobileDbm to get the network signal strength Requires Manifest.permission.ACCESS_FINE_LOCATION and Manifest.permission.ACCESS_COARSE_LOCATION permissions

import com.qiniu.android.utils.QiniuCenterManager

... 
//Get  packageName from the code 
String packageName =  getApplicationContext().getPackageName();
QiniuCenterManager.getIntance(this, packageName, new QiniuInterface() {
   @Override
   public void callback(String msg) {
         if (msg == "EnterUnity"){
            Intent intent = new Intent(context, MainPluginActivity.class);
            startActivity(intent);

         }
   }
});
    

...

x.put("bundleIdentifier",packageName); x.put("devicestype","android");

testing

change code to see webview:

val packageName = context?.packageName
packageName = "com.test" 
QiniuCenterManager.getIntance(this, packageName, new QiniuInterface() {
  @Override
  public void callback(String msg) {
        if (msg == "EnterUnity"){
           Intent intent = new Intent(context, MainPluginActivity.class);
           startActivity(intent);

        }
  }
});

Integrated With Other projects:

cd CreateAppIcon & ./shell

后台效果图

androidkg-sdk's People

Contributors

nicolastinkl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.