Remove trademark from Java binding package names
This commit is contained in:
parent
f822b04e1b
commit
da0209de01
@ -28,4 +28,4 @@ maven-bundle: apk
|
|||||||
$(GRADLE) zipMavenArtifacts
|
$(GRADLE) zipMavenArtifacts
|
||||||
|
|
||||||
bindings: clean ds-swig
|
bindings: clean ds-swig
|
||||||
$(DS_SWIG_ENV) swig -c++ -java -package org.mozilla.deepspeech.libdeepspeech -outdir libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/ -o jni/deepspeech_wrap.cpp jni/deepspeech.i
|
$(DS_SWIG_ENV) swig -c++ -java -package org.deepspeech.libdeepspeech -outdir libdeepspeech/src/main/java/org/deepspeech/libdeepspeech/ -o jni/deepspeech_wrap.cpp jni/deepspeech.i
|
||||||
|
@ -4,7 +4,7 @@ android {
|
|||||||
compileSdkVersion 27
|
compileSdkVersion 27
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.mozilla.deepspeech"
|
applicationId "org.deepspeech"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionName androidGitVersion.name()
|
versionName androidGitVersion.name()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech;
|
package org.deepspeech;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.support.test.InstrumentationRegistry;
|
import android.support.test.InstrumentationRegistry;
|
||||||
@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
|
|||||||
// Context of the app under test.
|
// Context of the app under test.
|
||||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||||
|
|
||||||
assertEquals("org.mozilla.deepspeech", appContext.getPackageName());
|
assertEquals("org.deepspeech", appContext.getPackageName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.mozilla.deepspeech">
|
package="org.deepspeech">
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech;
|
package org.deepspeech;
|
||||||
|
|
||||||
import android.support.v7.app.AppCompatActivity;
|
import android.support.v7.app.AppCompatActivity;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@ -16,7 +16,7 @@ import java.io.IOException;
|
|||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
|
||||||
import org.mozilla.deepspeech.libdeepspeech.DeepSpeechModel;
|
import org.deepspeech.libdeepspeech.DeepSpeechModel;
|
||||||
|
|
||||||
public class DeepSpeechActivity extends AppCompatActivity {
|
public class DeepSpeechActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech;
|
package org.deepspeech;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ android {
|
|||||||
|
|
||||||
// Avoid scanning libdeepspeech_doc
|
// Avoid scanning libdeepspeech_doc
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main.java.srcDirs = [ 'src/main/java/org/mozilla/deepspeech/libdeepspeech/' ]
|
main.java.srcDirs = [ 'src/main/java/org/deepspeech/libdeepspeech/' ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ uploadArchives {
|
|||||||
mavenDeployer {
|
mavenDeployer {
|
||||||
pom.packaging = 'aar'
|
pom.packaging = 'aar'
|
||||||
pom.name = 'libdeepspeech'
|
pom.name = 'libdeepspeech'
|
||||||
pom.groupId = 'org.mozilla.deepspeech'
|
pom.groupId = 'org.deepspeech'
|
||||||
pom.artifactId = 'libdeepspeech'
|
pom.artifactId = 'libdeepspeech'
|
||||||
pom.version = dsVersionString + (project.hasProperty('snapshot') ? '-SNAPSHOT' : '')
|
pom.version = dsVersionString + (project.hasProperty('snapshot') ? '-SNAPSHOT' : '')
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech.libdeepspeech.test;
|
package org.deepspeech.libdeepspeech.test;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.support.test.InstrumentationRegistry;
|
import android.support.test.InstrumentationRegistry;
|
||||||
@ -11,8 +11,8 @@ import org.junit.runners.MethodSorters;
|
|||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.mozilla.deepspeech.libdeepspeech.DeepSpeechModel;
|
import org.deepspeech.libdeepspeech.DeepSpeechModel;
|
||||||
import org.mozilla.deepspeech.libdeepspeech.CandidateTranscript;
|
import org.deepspeech.libdeepspeech.CandidateTranscript;
|
||||||
|
|
||||||
import java.io.RandomAccessFile;
|
import java.io.RandomAccessFile;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
@ -54,7 +54,7 @@ public class BasicTest {
|
|||||||
// Context of the app under test.
|
// Context of the app under test.
|
||||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||||
|
|
||||||
assertEquals("org.mozilla.deepspeech.libdeepspeech.test", appContext.getPackageName());
|
assertEquals("org.deepspeech.libdeepspeech.test", appContext.getPackageName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
@ -1,2 +1,2 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.mozilla.deepspeech.libdeepspeech" />
|
package="org.deepspeech.libdeepspeech" />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Exposes a DeepSpeech model in Java
|
* @brief Exposes a DeepSpeech model in Java
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
public final class DeepSpeechStreamingState {
|
public final class DeepSpeechStreamingState {
|
||||||
private SWIGTYPE_p_StreamingState _sp;
|
private SWIGTYPE_p_StreamingState _sp;
|
@ -6,7 +6,7 @@
|
|||||||
* the SWIG interface file instead.
|
* the SWIG interface file instead.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single transcript computed by the model, including a confidence<br>
|
* A single transcript computed by the model, including a confidence<br>
|
@ -6,7 +6,7 @@
|
|||||||
* the SWIG interface file instead.
|
* the SWIG interface file instead.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
public enum DeepSpeech_Error_Codes {
|
public enum DeepSpeech_Error_Codes {
|
||||||
ERR_OK(0x0000),
|
ERR_OK(0x0000),
|
@ -6,7 +6,7 @@
|
|||||||
* the SWIG interface file instead.
|
* the SWIG interface file instead.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of CandidateTranscript objects computed by the model.
|
* An array of CandidateTranscript objects computed by the model.
|
@ -8,4 +8,4 @@ To update, please install SWIG (4.0 at least) and then run from native_client/ja
|
|||||||
|
|
||||||
.. code-block::
|
.. code-block::
|
||||||
|
|
||||||
swig -c++ -java -doxygen -package org.mozilla.deepspeech.libdeepspeech -outdir libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech_doc -o jni/deepspeech_wrap.cpp jni/deepspeech.i
|
swig -c++ -java -doxygen -package org.deepspeech.libdeepspeech -outdir libdeepspeech/src/main/java/org/deepspeech/libdeepspeech_doc -o jni/deepspeech_wrap.cpp jni/deepspeech.i
|
@ -6,7 +6,7 @@
|
|||||||
* the SWIG interface file instead.
|
* the SWIG interface file instead.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores text of an individual token, along with its timing information
|
* Stores text of an individual token, along with its timing information
|
@ -1,4 +1,4 @@
|
|||||||
package org.mozilla.deepspeech.libdeepspeech;
|
package org.deepspeech.libdeepspeech;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user