Created
November 26, 2017 17:09
-
-
Save Audhil/408acbeac296892af807c856de3278f8 to your computer and use it in GitHub Desktop.
Dependencies of DL4J & ND4J for Android App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion '26.0.2' | |
defaultConfig { | |
applicationId "com.example.mohammed.dl4jandroid" | |
minSdkVersion 21 | |
targetSdkVersion 26 | |
versionCode 1 | |
versionName "1.0" | |
multiDexEnabled true | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
packagingOptions { | |
exclude 'META-INF/DEPENDENCIES' | |
exclude 'META-INF/DEPENDENCIES.txt' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/LICENSE.txt' | |
exclude 'META-INF/license.txt' | |
exclude 'META-INF/NOTICE' | |
exclude 'META-INF/NOTICE.txt' | |
exclude 'META-INF/notice.txt' | |
exclude 'META-INF/INDEX.LIST' | |
exclude 'org/bytedeco/javacpp/windows-x86/msvcp120.dll' | |
exclude 'org/bytedeco/javacpp/windows-x86_64/msvcp120.dll' | |
exclude 'org/bytedeco/javacpp/windows-x86/msvcr120.dll' | |
exclude 'org/bytedeco/javacpp/windows-x86_64/msvcr120.dll' | |
} | |
} | |
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | |
implementation 'com.android.support:appcompat-v7:26.1.0' | |
// get the latest version from here - http://search.maven.org/#search%7Cga%7C1%7Cdeeplearning4j-core | |
implementation 'org.deeplearning4j:deeplearning4j-core:0.9.1' | |
// get the latest version from here - http://search.maven.org/#search%7Cga%7C1%7Cnd4j-native | |
implementation 'org.nd4j:nd4j-native:0.9.1' | |
implementation 'org.nd4j:nd4j-native:0.9.1:android-x86' | |
implementation 'org.nd4j:nd4j-native:0.9.1:android-arm' | |
implementation 'org.bytedeco.javacpp-presets:openblas:0.2.19-1.3:android-x86' | |
implementation 'org.bytedeco.javacpp-presets:openblas:0.2.19-1.3:android-arm' | |
annotationProcessor "org.projectlombok:lombok:1.16.16" | |
implementation 'com.google.code.findbugs:annotations:3.0.1', { | |
exclude module: 'jsr305' | |
exclude module: 'jcip-annotations' | |
} | |
// for NLP support | |
implementation 'org.deeplearning4j:deeplearning4j-nlp:0.9.1' | |
// logger | |
implementation 'org.slf4j:slf4j-android:1.7.25' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext.kotlin_version = '1.1.51' | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.0.0' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
google() | |
jcenter() | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment