Skip to content

Commit

Permalink
Remove trademark from Java binding package names
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Dec 7, 2020
1 parent f822b04 commit da0209d
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion native_client/java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion native_client/java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android {
compileSdkVersion 27

defaultConfig {
applicationId "org.mozilla.deepspeech"
applicationId "org.deepspeech"
minSdkVersion 21
targetSdkVersion 27
versionName androidGitVersion.name()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("org.mozilla.deepspeech", appContext.getPackageName());
assertEquals("org.deepspeech", appContext.getPackageName());
}
}
2 changes: 1 addition & 1 deletion native_client/java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
Expand All @@ -16,7 +16,7 @@
import java.nio.ByteOrder;
import java.nio.ByteBuffer;

import org.mozilla.deepspeech.libdeepspeech.DeepSpeechModel;
import org.deepspeech.libdeepspeech.DeepSpeechModel;

public class DeepSpeechActivity extends AppCompatActivity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech;
package org.deepspeech;

import org.junit.Test;

Expand Down
4 changes: 2 additions & 2 deletions native_client/java/libdeepspeech/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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/' ]
}
}

Expand Down Expand Up @@ -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' : '')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech.libdeepspeech.test;
package org.deepspeech.libdeepspeech.test;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -11,8 +11,8 @@

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;
Expand Down Expand Up @@ -54,7 +54,7 @@ public void useAppContext() {
// 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mozilla.deepspeech.libdeepspeech" />
package="org.deepspeech.libdeepspeech" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;

/**
* @brief Exposes a DeepSpeech model in Java
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;

public final class DeepSpeechStreamingState {
private SWIGTYPE_p_StreamingState _sp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mozilla.deepspeech.libdeepspeech;
package org.deepspeech.libdeepspeech;

import org.junit.Test;

Expand Down

0 comments on commit da0209d

Please sign in to comment.