File tree 6 files changed +36
-15
lines changed
6 files changed +36
-15
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ The neural networks shown in this example are the same as are used in the [Moon]
6
6
7
7
The build configuration for Android can be found in [ app/build.gradle] ( ./app/build.gradle ) .
8
8
9
- [ Go back] ( ../README.md ) to the main repository page to explore other features/functionality of the ** Eclipse Deeplearning4J** ecosystem. File an issue [ here] ( https://github.com/eclipse/deeplearning4j-examples /issues ) to request new features.
9
+ [ Go back] ( ../README.md ) to the main repository page to explore other features/functionality of the ** Eclipse Deeplearning4J** ecosystem. File an issue [ here] ( https://github.com/eclipse/deeplearning4j/issues ) to request new features.
10
10
11
11
12
12
```
Original file line number Diff line number Diff line change @@ -22,13 +22,17 @@ information regarding copyright ownership.
22
22
apply plugin : ' com.android.application'
23
23
24
24
android {
25
- compileSdkVersion 29
26
- buildToolsVersion " 29.0.3"
27
-
25
+ packagingOptions {
26
+ exclude ' META-INF/native-image/**/**.json'
27
+ exclude ' META-INF/native-image/*.json'
28
+ pickFirst ' nd4j-native.properties'
29
+ }
28
30
defaultConfig {
31
+ compileSdkVersion 30
32
+
29
33
applicationId " com.example.androidDl4jClassifier"
30
- minSdkVersion 29
31
- targetSdkVersion 29
34
+ minSdkVersion 30
35
+ targetSdkVersion 30
32
36
versionCode 1
33
37
versionName " 1.0"
34
38
@@ -47,11 +51,27 @@ android {
47
51
}
48
52
}
49
53
54
+ configurations {
55
+ javacpp
56
+ }
57
+
58
+ task javacppExtract (type : Copy ) {
59
+ dependsOn configurations. javacpp
60
+
61
+ from { configurations. javacpp. collect { zipTree(it) } }
62
+ include " lib/**"
63
+ into " $buildDir /javacpp/"
64
+ android. sourceSets. main. jniLibs. srcDirs + = [" $buildDir /javacpp/lib/" ]
65
+
66
+ tasks. getByName(' preBuild' ). dependsOn javacppExtract
67
+ }
68
+
69
+
50
70
dependencies {
51
71
def dl4jVersion = ' 1.0.0-M2'
52
- def openblasVersion = ' 0.3.10 -1.5.5 '
53
- def opencvVersion = ' 4.5.1 -1.5.5 '
54
- def leptonicaVersion = ' 1.80 .0-1.5.5 '
72
+ def openblasVersion = ' 0.3.19 -1.5.7 '
73
+ def opencvVersion = ' 4.5.5 -1.5.7 '
74
+ def leptonicaVersion = ' 1.82 .0-1.5.7 '
55
75
56
76
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
57
77
Original file line number Diff line number Diff line change @@ -25,13 +25,14 @@ information regarding copyright ownership.
25
25
26
26
<application
27
27
android : allowBackup =" true"
28
- android : icon =" @mipmap/ic_launcher"
28
+ android : icon =" @mipmap/ic_launcher" 0
29
29
android : label =" @string/app_name"
30
30
android : roundIcon =" @mipmap/ic_launcher_round"
31
31
android : supportsRtl =" true"
32
+ android : extractNativeLibs =" true"
32
33
android : theme =" @style/Theme.AppCompat.Light.DarkActionBar"
33
34
android : fullBackupContent =" @xml/backup_descriptor" >
34
- <activity android : name =" com.example. org.deeplearning4j.examples.androidclassifier.MainActivity" >
35
+ <activity android : name =" org.deeplearning4j.examples.androidclassifier.MainActivity" >
35
36
<intent-filter >
36
37
<action android : name =" android.intent.action.MAIN" />
37
38
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ buildscript {
29
29
30
30
}
31
31
dependencies {
32
- classpath ' com.android.tools.build:gradle:4.0.0 '
32
+ classpath ' com.android.tools.build:gradle:7.1.2 '
33
33
34
34
35
35
// NOTE: Do not place your application dependencies here; they belong
@@ -42,7 +42,7 @@ allprojects {
42
42
google()
43
43
jcenter()
44
44
mavenLocal()
45
- maven { url " https://oss.sonatype.org/content/repositories/snapshots" }
45
+ maven { url " https://s01. oss.sonatype.org/content/repositories/snapshots" }
46
46
}
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ information regarding copyright ownership.
27
27
# http://www.gradle.org/docs/current/userguide/build_environment.html
28
28
# Specifies the JVM arguments used for the daemon process.
29
29
# The setting is particularly useful for tweaking memory settings.
30
- org.gradle.jvmargs =-Xmx2g
30
+ org.gradle.jvmargs =-Xmx4g
31
31
# When configured, Gradle will run in incubating parallel mode.
32
32
# This option should only be used with decoupled projects. More details, visit
33
33
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ distributionBase=GRADLE_USER_HOME
24
24
distributionPath =wrapper/dists
25
25
zipStoreBase =GRADLE_USER_HOME
26
26
zipStorePath =wrapper/dists
27
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.1.1 -all.zip
27
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.2 -all.zip
You can’t perform that action at this time.
0 commit comments