Skip to content

Commit b9773e2

Browse files
committed
* Version 0.2.2
* Upgrade some dependencies * Use the git for rust-keylock-lib dependency * Some housekeeping
1 parent 1e0f6b0 commit b9773e2

File tree

7 files changed

+36
-9
lines changed

7 files changed

+36
-9
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/.project
22
/.README.md.html
33
/buildallandrun.sh
4+
/android-toolchain/
5+
/tools/

java/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
/proguard-project.txt
99
/project.properties
1010
/target/
11-
/libs/armeabi/
11+
/libs/armeabi/
12+
/rust-keylock-android-java.iml

java/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="org.astonbitecode.rustkeylock"
44
android:versionCode="1"
5-
android:versionName="0.2.1" >
5+
android:versionName="0.2.2" >
66

77
<uses-sdk
88
android:minSdkVersion="16"

java/pom.xml

+27-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<android.version></android.version>
1616
<jna.version>4.4.0</jna.version>
17-
<android.maven.plugin.version>4.4.3</android.maven.plugin.version>
17+
<android.maven.plugin.version>4.5.0</android.maven.plugin.version>
1818
<android.plugin.version>4.1.1.4</android.plugin.version>
1919
<junit.version>3.8.1</junit.version>
2020
<maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
@@ -103,15 +103,38 @@
103103
<pluginExecutions>
104104
<pluginExecution>
105105
<pluginExecutionFilter>
106-
<groupId>com.simpligility.maven.plugins</groupId>
107-
<artifactId>android-maven-plugin</artifactId>
106+
<groupId>
107+
org.apache.maven.plugins
108+
</groupId>
109+
<artifactId>
110+
maven-dependency-plugin
111+
</artifactId>
112+
<versionRange>[2.1,)</versionRange>
113+
<goals>
114+
<goal>unpack-dependencies</goal>
115+
</goals>
116+
</pluginExecutionFilter>
117+
<action>
118+
<ignore></ignore>
119+
</action>
120+
</pluginExecution>
121+
<pluginExecution>
122+
<pluginExecutionFilter>
123+
<groupId>
124+
com.simpligility.maven.plugins
125+
</groupId>
126+
<artifactId>
127+
android-maven-plugin
128+
</artifactId>
108129
<versionRange>[4.4.3,)</versionRange>
109130
<goals>
131+
<goal>generate-sources</goal>
110132
<goal>emma</goal>
133+
<goal>proguard</goal>
111134
</goals>
112135
</pluginExecutionFilter>
113136
<action>
114-
<ignore />
137+
<ignore></ignore>
115138
</action>
116139
</pluginExecution>
117140
</pluginExecutions>

rust/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Cargo.lock
33
/.project
44
/.settings/
55
/config
6+
/rust-keylock-android-rust.iml

rust/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "rustkeylockandroid"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
authors = ["aston <[email protected]>"]
55

66
[lib]
77
name = "rustkeylockandroid"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
rust_keylock = "0.2.1"
11+
rust_keylock = { git = "https://github.com/rust-keylock/rust-keylock-lib", rev = "HEAD" }
1212
libc = "0.2"
1313
lazy_static = "0.2"
1414
log = "0.3"

rust/src/android_editor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl Editor for AndroidImpl {
113113
}
114114
}
115115

116-
fn show_message(&self, message: &'static str) -> UserSelection {
116+
fn show_message(&self, message: & str) -> UserSelection {
117117
debug!("Showing Message '{}'", message);
118118
(self.show_message_cb)(super::to_java_string(message.to_string()));
119119
let user_selection = self.rx.recv().unwrap();

0 commit comments

Comments
 (0)