Compare commits

...

10 Commits

Author SHA1 Message Date
strawmanbobi
b67d6cd126 updated maven publisher plugins 2026-01-11 10:26:45 +08:00
strawmanbobi
a56acc638e updated java web-api with latest decode lib 2026-01-10 20:04:25 +08:00
strawmanbobi
a5dd5f6304 removed unused proguard rules 2025-12-18 20:09:10 +08:00
24d0623497 update README.md 2025-12-08 19:34:30 +08:00
1bfbec056d updated README.md 2025-12-08 19:34:23 +08:00
strawmanbobi
f36cc817e1 fixed typo 2025-12-02 20:25:18 +08:00
strawmanbobi
3684da32fb renamed java-web-sdk 2025-11-30 17:46:13 +08:00
3225aa6424 update README.md 2025-11-30 17:45:24 +08:00
28da1c47ab update README.md 2025-11-30 17:45:17 +08:00
91a78b6565 update README.md 2025-11-30 17:45:09 +08:00
41 changed files with 76 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
## Usage
### 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
@@ -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.
```xml
<meta-data
android:name="irext_app_key"
android:value="your app key" />
android:name="irext_app_key"
android:value="your app key" />
<meta-data
android:name="irext_app_secret"
android:value="your app secret" />
android:name="irext_app_secret"
android:value="your app secret" />
```
### 3. Use the SDK

View File

@@ -77,14 +77,14 @@ android {
minSdkVersion = 26
targetSdkVersion = 36
versionCode = 7
versionName = '1.5.1'
versionName = '1.5.2'
signingConfig = signingConfigs.irext_key
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
versionNameSuffix '1.5.1'
minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
versionNameSuffix '1.5.2'
}
debug {
debuggable true

View File

@@ -23,7 +23,7 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep public class net.irext.webapi.** {
-keepnames class net.irext.webapi.** {
public protected *;
}

View File

@@ -1,7 +1,7 @@
## Usage
### 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.

View File

@@ -5,7 +5,7 @@
<groupId>net.irext.webapi</groupId>
<artifactId>irext-webapi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>jar</packaging>
<url>https://opensource.irext.net/irext/index-api</url>
@@ -89,6 +89,47 @@
</execution>
</executions>
</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>
</build>
</project>

View File

@@ -441,6 +441,7 @@ public class WebAPIs {
Integer directDecode, Integer paraData) {
String decodeURL = URL_PREFIX + SERVICE_ONLINE_DECODE;
DecodeRequest decodeRequest = new DecodeRequest();
acStatus.setChangeWindDir(changeWindDir);
decodeRequest.setId(id);
decodeRequest.setToken(token);
decodeRequest.setIndexId(indexId);

View File

@@ -22,6 +22,7 @@ public class ACStatus {
private int acDisplay;
private int acSleep;
private int acTimer;
private int changeWindDir;
/**
* Default constructor for ACStatus.
@@ -40,9 +41,10 @@ public class ACStatus {
* @param acDisplay the display setting
* @param acSleep the sleep mode 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,
int acDisplay, int acSleep, int acTimer) {
int acDisplay, int acSleep, int acTimer, int changeWindDir) {
this.acPower = acPower;
this.acTemp = acTemp;
this.acMode = acMode;
@@ -51,6 +53,7 @@ public class ACStatus {
this.acDisplay = acDisplay;
this.acSleep = acSleep;
this.acTimer = acTimer;
this.changeWindDir = changeWindDir;
}
/**
@@ -196,4 +199,22 @@ public class ACStatus {
public void setAcTimer(int 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;
}
}

View File

@@ -1,3 +0,0 @@
artifactId=irext-webapi
groupId=net.irext.webapi
version=1.5.1