Skip to content

Commit 8ec173a

Browse files
committed
Setup examples for testing
1 parent 2bdc1c1 commit 8ec173a

File tree

19 files changed

+160
-125
lines changed

19 files changed

+160
-125
lines changed

.github/workflows/example-sanity-check.yml

Whitespace-only changes.

.github/workflows/run-sanity-checks.sh

Whitespace-only changes.

android-examples/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
versionCode 1
1212
versionName "1.0"
1313

14-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515
}
1616

1717
buildTypes {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package com.example.androidclassifier;
22

33
import android.content.Context;
44

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.androidDl4jClassifier">
3+
package="com.example.androidclassifier">
44

55
<application
66
android:allowBackup="true"
@@ -10,7 +10,7 @@
1010
android:supportsRtl="true"
1111
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
1212
android:fullBackupContent="@xml/backup_descriptor">
13-
<activity android:name="com.example.androidDl4jClassifier.MainActivity">
13+
<activity android:name="com.example.org.deeplearning4j.examples.androidclassifier.MainActivity">
1414
<intent-filter>
1515
<action android:name="android.intent.action.MAIN" />
1616

@@ -19,4 +19,4 @@
1919
</activity>
2020
</application>
2121

22-
</manifest>
22+
</manifest>

android-examples/app/src/main/java/com/example/androidDl4jClassifier/MainActivity.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import androidx.appcompat.app.AppCompatActivity;
44

55
import android.os.Bundle;
66
import android.view.Menu;
77
import android.view.MenuItem;
8+
import com.example.androidclassifier.R;
89

910

1011
public class MainActivity extends AppCompatActivity {

android-examples/app/src/main/java/com/example/androidDl4jClassifier/ScatterView.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/ScatterView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import android.content.Context;
44
import android.graphics.Canvas;

android-examples/app/src/main/java/com/example/androidDl4jClassifier/TrainingTask.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/TrainingTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
44
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;

android-examples/app/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity">
7+
tools:context="org.deeplearning4j.examples.androidclassifier.MainActivity">
88

99

1010
<view
1111
android:id="@+id/id_scatterview"
12-
class="com.example.androidDl4jClassifier.ScatterView"
12+
class="org.deeplearning4j.examples.androidclassifier.ScatterView"
1313
android:layout_width="fill_parent"
1414
android:layout_height="0dp"
1515
app:layout_constraintBottom_toBottomOf="parent"
1616
app:layout_constraintEnd_toEndOf="parent"
1717
app:layout_constraintHorizontal_bias="0.0"
1818
app:layout_constraintStart_toStartOf="parent" />
19-
</androidx.constraintlayout.widget.ConstraintLayout>
19+
</androidx.constraintlayout.widget.ConstraintLayout>

android-examples/app/src/test/java/com/example/androidDl4jClassifier/ExampleUnitTest.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)