# OmapiCompat **Repository Path**: liu_wanshun/OmapiCompat ## Basic Information - **Project Name**: OmapiCompat - **Description**: 对Google版,Simalliance版两种OpenMobileAPI实现进行封装,统一API方法调用。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-10 - **Last Updated**: 2022-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: Android ## README # OmapiCompat [![](https://jitpack.io/v/com.gitee.liu_wanshun/OmapiCompat.svg)](https://jitpack.io/#com.gitee.liu_wanshun/OmapiCompat) OpenMobileAPI是提供手机客户端程序访问内置eSE或SIM完成Android设备SE空间管理和卡应用管理的API。 Android P以前是通过Simalliance版API,手机厂商内置到手机系统中实现;Android P以后,谷歌将此API的实现纳入官方API中。 [Simalliance版](http://seek-for-android.github.io/) [Google版](https://developer.android.google.cn/reference/android/se/omapi/package-summary) 此库对两种实现进行封装,统一API方法调用。 ## Gradle **1.** 在项目根目录下的 `build.gradle` 文件中加入 ```groovy allprojects { repositories { maven { url 'https://jitpack.io' } } } ``` **2.** 在 app 模块`build.gradle`添加依赖 ```groovy dependencies { implementation 'com.gitee.liu_wanshun:OmapiCompat:0.0.1' } ``` ## 用法 ```kotlin //创建SEServiceCompat静态方法 fun get(context: Context,executor: Executor,listener: OnConnectedListener): SEServiceCompat //其他用法和android原生一样,区别是类名都替换成Compat结尾,如:ReaderCompat,SessionCompat,ChannelCompat. ``` ## 更新日志 [Releases](https://gitee.com/liu_wanshun/OmapiCompat/releases) ## License ``` Copyright (C) 2022. liuwanshun 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. ```