Remove trademark from Java binding package names

This commit is contained in:
Reuben Morais 2020-12-07 10:18:56 +02:00
Родитель f822b04e1b
Коммит da0209de01
17 изменённых файлов: 23 добавлений и 23 удалений

Просмотреть файл

@ -28,4 +28,4 @@ maven-bundle: apk
$(GRADLE) zipMavenArtifacts
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
defaultConfig {
applicationId "org.mozilla.deepspeech"
applicationId "org.deepspeech"
minSdkVersion 21
targetSdkVersion 27
versionName androidGitVersion.name()

Просмотреть файл

@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
// Context of the app under test.
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"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mozilla.deepspeech">
package="org.deepspeech">
<application
android:allowBackup="true"

Просмотреть файл

@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
@ -16,7 +16,7 @@ import java.io.IOException;
import java.nio.ByteOrder;
import java.nio.ByteBuffer;
import org.mozilla.deepspeech.libdeepspeech.DeepSpeechModel;
import org.deepspeech.libdeepspeech.DeepSpeechModel;
public class DeepSpeechActivity extends AppCompatActivity {

Просмотреть файл

@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;
import org.junit.Test;

Просмотреть файл

@ -46,7 +46,7 @@ android {
// Avoid scanning libdeepspeech_doc
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 {
pom.packaging = 'aar'
pom.name = 'libdeepspeech'
pom.groupId = 'org.mozilla.deepspeech'
pom.groupId = 'org.deepspeech'
pom.artifactId = 'libdeepspeech'
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.support.test.InstrumentationRegistry;
@ -11,8 +11,8 @@ import org.junit.runners.MethodSorters;
import static org.junit.Assert.*;
import org.mozilla.deepspeech.libdeepspeech.DeepSpeechModel;
import org.mozilla.deepspeech.libdeepspeech.CandidateTranscript;
import org.deepspeech.libdeepspeech.DeepSpeechModel;
import org.deepspeech.libdeepspeech.CandidateTranscript;
import java.io.RandomAccessFile;
import java.io.FileNotFoundException;
@ -54,7 +54,7 @@ public class BasicTest {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("org.mozilla.deepspeech.libdeepspeech.test", appContext.getPackageName());
assertEquals("org.deepspeech.libdeepspeech.test", appContext.getPackageName());
}
@Test

Просмотреть файл

@ -1,2 +1,2 @@
<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

Просмотреть файл

@ -1,4 +1,4 @@
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;
public final class DeepSpeechStreamingState {
private SWIGTYPE_p_StreamingState _sp;

Просмотреть файл

@ -6,7 +6,7 @@
* 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>

Просмотреть файл

@ -6,7 +6,7 @@
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;
public enum DeepSpeech_Error_Codes {
ERR_OK(0x0000),

Просмотреть файл

@ -6,7 +6,7 @@
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;
/**
* 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::
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.
* ----------------------------------------------------------------------------- */
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;
/**
* 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;