-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jogrimst/master
Initial commit
- Loading branch information
Showing
120 changed files
with
126,591 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ captures/ | |
|
||
# Intellij | ||
*.iml | ||
.idea/workspace.xml | ||
.idea | ||
|
||
# Keystore files | ||
*.jks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
script: | ||
# By default Travis CI executes './gradlew build connectedCheck' if no 'script:' section found. | ||
- ./gradlew build | ||
|
||
language: android | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
android: | ||
components: | ||
- tools | ||
- build-tools-23.0.1 | ||
- android-23 | ||
- extra-android-m2repository | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "23.0.1" | ||
|
||
defaultConfig { | ||
applicationId "org.literacyapp.visemes" | ||
minSdkVersion 21 | ||
targetSdkVersion 23 | ||
versionCode 10000000 | ||
versionName "1.0.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
} | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:23.4.0' | ||
compile 'com.android.support:support-v4:23.4.0' | ||
compile 'org.rajawali3d:rajawali:1.0.325@aar' | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/androidTest/java/org/literacyapp/visemes/ApplicationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.literacyapp.visemes; | ||
|
||
import android.app.Application; | ||
import android.test.ApplicationTestCase; | ||
|
||
/** | ||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||
*/ | ||
public class ApplicationTest extends ApplicationTestCase<Application> { | ||
public ApplicationTest() { | ||
super(Application.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.literacyapp.visemes"> | ||
|
||
<!-- Tell the system this app requires OpenGL ES 3.1. --> | ||
<uses-feature android:glEsVersion="0x00030001" android:required="true" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
android:largeHeap="true"> | ||
|
||
<activity | ||
android:name=".FaceActivity" | ||
android:configChanges="orientation|keyboardHidden|screenSize" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
63 changes: 63 additions & 0 deletions
63
app/src/main/java/org/literacyapp/visemes/FaceActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.literacyapp.visemes; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
import org.rajawali3d.surface.IRajawaliSurface; | ||
import org.rajawali3d.surface.RajawaliSurfaceView; | ||
|
||
public class FaceActivity extends AppCompatActivity { | ||
|
||
private PoseRenderer poseRenderer; | ||
private RajawaliSurfaceView surface; | ||
|
||
private Button letterSound1Button; | ||
private Button letterSound2Button; | ||
private Button letterSound3Button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
setContentView(R.layout.activity_face); | ||
|
||
letterSound1Button = (Button) findViewById(R.id.letterSound1); | ||
letterSound2Button = (Button) findViewById(R.id.letterSound2); | ||
letterSound3Button = (Button) findViewById(R.id.letterSound3); | ||
|
||
surface = (RajawaliSurfaceView) findViewById(R.id.rajwali_surface); | ||
surface.setFrameRate(15); | ||
surface.setRenderMode(IRajawaliSurface.RENDERMODE_WHEN_DIRTY); | ||
|
||
poseRenderer = new PoseRenderer(this); | ||
surface.setSurfaceRenderer(poseRenderer); | ||
} | ||
|
||
@Override | ||
protected void onStart() { | ||
super.onStart(); | ||
|
||
letterSound1Button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
poseRenderer.renderViseme("e"); | ||
} | ||
}); | ||
|
||
letterSound2Button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
poseRenderer.renderViseme("t"); | ||
} | ||
}); | ||
|
||
letterSound3Button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
poseRenderer.renderViseme("a"); | ||
} | ||
}); | ||
} | ||
} |
Oops, something went wrong.