Skip to content

Commit

Permalink
Package US model on bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Nov 4, 2020
1 parent 746ff47 commit b639fb5
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
71 changes: 71 additions & 0 deletions android/model-en/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
}
}

plugins {
id "com.jfrog.bintray"
}

def archiveName = "vosk-model-en"
def libVersion = "0.3.15"

allprojects {
repositories {
google()
jcenter()
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 6
versionName = libVersion
archivesBaseName = archiveName
}
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
pkg {
repo = 'vosk'
name = 'vosk-model-en'
userOrg = "alphacep"
licenses = ['Apache2.0']
websiteUrl = 'https://github.com/alphacep/vosk-api'
issueTrackerUrl = 'https://github.com/alphacep/vosk-api/issues'
vcsUrl = 'https://github.com/alphacep/vosk-api'
version {
name = libVersion
vcsTag = libVersion
}
}
publications = ['aar']
}

publishing {
publications {
aar(MavenPublication) {
groupId 'com.alphacep'
artifactId archiveName
version libVersion
artifact("$buildDir/outputs/aar/$archiveName-release.aar")
}
}
}
3 changes: 3 additions & 0 deletions android/model-en/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.kaldi.model.en">
</manifest>
2 changes: 2 additions & 0 deletions android/model-en/src/main/assets/vosk-model-en/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
US English model for android

1 change: 1 addition & 0 deletions android/model-en/src/main/assets/vosk-model-en/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.15
1 change: 1 addition & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include 'model-en'

0 comments on commit b639fb5

Please sign in to comment.