Skip to content

Commit 749ae0d

Browse files
committed
Move sample projects in to samples directory
1 parent b4f413d commit 749ae0d

File tree

31 files changed

+9
-12
lines changed

31 files changed

+9
-12
lines changed

plugin/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ version '0.0.2'
1717
publishing {
1818
repositories {
1919
maven {
20-
url "../sample/maven-repo"
20+
url "../samples/maven-repo"
2121
}
2222
}
2323
publications {

sample/build.gradle samples/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
url "https://plugins.gradle.org/m2/"
77
}
88
maven {
9-
url "./maven-repo"
9+
url "../maven-repo"
1010
}
1111
}
1212
dependencies {
File renamed without changes.
File renamed without changes.

library/build.gradle samples/library/build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ buildscript {
66
url "https://plugins.gradle.org/m2/"
77
}
88
maven {
9-
url "../sample/maven-repo"
9+
url "../maven-repo"
1010
}
1111
}
1212
dependencies {
1313
classpath 'com.android.tools.build:gradle:3.0.1'
14-
// classpath "com.nishtahir:rust-android:0.0.1"
14+
classpath "com.nishtahir:rust-android:0.0.2"
1515
}
1616
}
1717

1818
apply plugin: 'com.android.library'
19-
//apply plugin: "com.nishtahir.rust-android"
19+
apply plugin: "com.nishtahir.rust-android"
2020

2121
android {
2222
compileSdkVersion 26
@@ -39,10 +39,10 @@ android {
3939
}
4040
}
4141

42-
//cargo {
43-
// module = "../rust"
44-
// targets = ["arm", "x86"]
45-
//}
42+
cargo {
43+
module = "../rust"
44+
targets = ["arm", "x86"]
45+
}
4646

4747
dependencies {
4848
compile fileTree(dir: 'libs', include: ['*.jar'])
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

settings.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
rootProject.name = 'rust-android'
22
include ':plugin'
3-
include ':library'
4-
include ':sample'
5-

0 commit comments

Comments
 (0)