Compare commits
10 Commits
dfb00854be
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b67d6cd126 | ||
|
|
a56acc638e | ||
|
|
a5dd5f6304 | ||
| 24d0623497 | |||
| 1bfbec056d | |||
|
|
f36cc817e1 | ||
|
|
3684da32fb | ||
| 3225aa6424 | |||
| 28da1c47ab | |||
| 91a78b6565 |
@@ -1,7 +1,7 @@
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### 1. Register your APP
|
### 1. Register your APP
|
||||||
Register your APP on IRext SDK console [irext SDK console](http://site.irext.net/sdk), (You need to register an IRext account first)
|
Register your APP on [IRext SDK console](http://site.irext.net/sdk), (You need to register an IRext account first)
|
||||||
|
|
||||||
You need to fetch the package name and SHA1 signature of your APP and fill these information as SDK registration information
|
You need to fetch the package name and SHA1 signature of your APP and fill these information as SDK registration information
|
||||||
|
|
||||||
@@ -17,12 +17,11 @@ implementation 'net.irext.webapi:irext-androidapi:1.5.1'
|
|||||||
Add 2 meta-data tags to your AndroidManifest.xml providing APP key and secret get from step 1.
|
Add 2 meta-data tags to your AndroidManifest.xml providing APP key and secret get from step 1.
|
||||||
```xml
|
```xml
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="irext_app_key"
|
android:name="irext_app_key"
|
||||||
android:value="your app key" />
|
android:value="your app key" />
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="irext_app_secret"
|
android:name="irext_app_secret"
|
||||||
android:value="your app secret" />
|
android:value="your app secret" />
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Use the SDK
|
### 3. Use the SDK
|
||||||
|
|||||||
@@ -77,14 +77,14 @@ android {
|
|||||||
minSdkVersion = 26
|
minSdkVersion = 26
|
||||||
targetSdkVersion = 36
|
targetSdkVersion = 36
|
||||||
versionCode = 7
|
versionCode = 7
|
||||||
versionName = '1.5.1'
|
versionName = '1.5.2'
|
||||||
signingConfig = signingConfigs.irext_key
|
signingConfig = signingConfigs.irext_key
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
versionNameSuffix '1.5.1'
|
versionNameSuffix '1.5.2'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
debuggable true
|
debuggable true
|
||||||
|
|||||||
2
android-sdk/proguard-rules.pro
vendored
2
android-sdk/proguard-rules.pro
vendored
@@ -23,7 +23,7 @@
|
|||||||
# If you keep the line number information, uncomment this to
|
# If you keep the line number information, uncomment this to
|
||||||
# hide the original source file name.
|
# hide the original source file name.
|
||||||
#-renamesourcefileattribute SourceFile
|
#-renamesourcefileattribute SourceFile
|
||||||
-keep public class net.irext.webapi.** {
|
-keepnames class net.irext.webapi.** {
|
||||||
public protected *;
|
public protected *;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### 1. Register your APP
|
### 1. Register your APP
|
||||||
Register your APP on IRext SDK console [irext SDK console](http://site.irext.net), (You need to register an IRext account first.
|
Register your APP on [IRext SDK console](http://site.irext.net), (You need to register an IRext account first).
|
||||||
|
|
||||||
While your APP is registered, you can see the APP key and APP secret in your APP list.
|
While your APP is registered, you can see the APP key and APP secret in your APP list.
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>net.irext.webapi</groupId>
|
<groupId>net.irext.webapi</groupId>
|
||||||
<artifactId>irext-webapi</artifactId>
|
<artifactId>irext-webapi</artifactId>
|
||||||
<version>1.5.1</version>
|
<version>1.5.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<url>https://opensource.irext.net/irext/index-api</url>
|
<url>https://opensource.irext.net/irext/index-api</url>
|
||||||
@@ -89,6 +89,47 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.6.3</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadocs</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<!-- This prevents the build from failing if there are minor errors in your Javadoc comments -->
|
||||||
|
<doclint>none</doclint>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<version>3.1.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>sign-artifacts</id>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.central</groupId>
|
||||||
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>0.9.0</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<publishingServerId>central</publishingServerId>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
@@ -441,6 +441,7 @@ public class WebAPIs {
|
|||||||
Integer directDecode, Integer paraData) {
|
Integer directDecode, Integer paraData) {
|
||||||
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
|
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
|
||||||
DecodeRequest decodeRequest = new DecodeRequest();
|
DecodeRequest decodeRequest = new DecodeRequest();
|
||||||
|
acStatus.setChangeWindDir(changeWindDir);
|
||||||
decodeRequest.setId(id);
|
decodeRequest.setId(id);
|
||||||
decodeRequest.setToken(token);
|
decodeRequest.setToken(token);
|
||||||
decodeRequest.setIndexId(indexId);
|
decodeRequest.setIndexId(indexId);
|
||||||
@@ -22,6 +22,7 @@ public class ACStatus {
|
|||||||
private int acDisplay;
|
private int acDisplay;
|
||||||
private int acSleep;
|
private int acSleep;
|
||||||
private int acTimer;
|
private int acTimer;
|
||||||
|
private int changeWindDir;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor for ACStatus.
|
* Default constructor for ACStatus.
|
||||||
@@ -40,9 +41,10 @@ public class ACStatus {
|
|||||||
* @param acDisplay the display setting
|
* @param acDisplay the display setting
|
||||||
* @param acSleep the sleep mode setting
|
* @param acSleep the sleep mode setting
|
||||||
* @param acTimer the timer setting
|
* @param acTimer the timer setting
|
||||||
|
* @param changeWindDir the command to change wind direction
|
||||||
*/
|
*/
|
||||||
public ACStatus(int acPower, int acMode, int acTemp, int acWindSpeed, int acWindDir,
|
public ACStatus(int acPower, int acMode, int acTemp, int acWindSpeed, int acWindDir,
|
||||||
int acDisplay, int acSleep, int acTimer) {
|
int acDisplay, int acSleep, int acTimer, int changeWindDir) {
|
||||||
this.acPower = acPower;
|
this.acPower = acPower;
|
||||||
this.acTemp = acTemp;
|
this.acTemp = acTemp;
|
||||||
this.acMode = acMode;
|
this.acMode = acMode;
|
||||||
@@ -51,6 +53,7 @@ public class ACStatus {
|
|||||||
this.acDisplay = acDisplay;
|
this.acDisplay = acDisplay;
|
||||||
this.acSleep = acSleep;
|
this.acSleep = acSleep;
|
||||||
this.acTimer = acTimer;
|
this.acTimer = acTimer;
|
||||||
|
this.changeWindDir = changeWindDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -196,4 +199,22 @@ public class ACStatus {
|
|||||||
public void setAcTimer(int acTimer) {
|
public void setAcTimer(int acTimer) {
|
||||||
this.acTimer = acTimer;
|
this.acTimer = acTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the change wind direction setting.
|
||||||
|
*
|
||||||
|
* @return the change wind direction setting
|
||||||
|
*/
|
||||||
|
public int getChangeWindDir() {
|
||||||
|
return changeWindDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets change wind direction setting.
|
||||||
|
*
|
||||||
|
* @param changeWindDir the change wind direction setting
|
||||||
|
*/
|
||||||
|
public void setChangeWindDir(int changeWindDir) {
|
||||||
|
this.changeWindDir = changeWindDir;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
artifactId=irext-webapi
|
|
||||||
groupId=net.irext.webapi
|
|
||||||
version=1.5.1
|
|
||||||
Reference in New Issue
Block a user