Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.24 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.24 KB

China Mobile Number SDK for Java

Build Status Maven Central Code Coverage

Getting Started

Install the SDK

<dependency>
  <groupId>com.github.xu42</groupId>
  <artifactId>china-mobile-number</artifactId>
  <version>1.0.2</version>
</dependency>

Examples

// mobile number is valid
boolean isValid = ChinaMobileNumber.isValid("13800138000");

// get mobile number opertor 
ChinaMobileOperatorEnum operator = ChinaMobileNumber.getOperator("13800138000");

Building From Source

Once you check out the code from GitHub, you can build it using Maven. To disable test and the GPG-signing in the build, use:

mvn clean install -Dmaven.test.skip=true -Dgpg.skip=true