GithubHelp home page GithubHelp logo

wawasdk's Introduction

集成

权限


   <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>

    <!--可选-->
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

步骤

1,引入wawa-sdk

implementation 'com.shiguang:wawa-sdk:0.0.2'

2,在应用的build.gradle配置ndk

defaultConfig {
        
        ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }
}

3,application 中初始化 WawaConfig.

WawaConfig.init(this,"https://wawah5.szsget.cn/channel/");

4,在需要的页面代码引入WawaFrament, 不支持xml 方式引入 WawaFragment。

//必须通过WawaFragment.instance 去获取 wawafragment , 
WawaFragment fragment = WawaFragment.instance(
                "12345678901",
                "94654343",
                "2850EA81FE1F6C0433DC2DC0AD99AF06",
                "77WWCFU09607OTTIDLVYIAV8K");
getSupportFragmentManager().beginTransaction().replace(R.id.vContent, fragment).commit();

具体参考demo

wawasdk's People

Contributors

ymex avatar

Watchers

 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.