Skip to content

Commit

Permalink
Merge pull request #1 from jogrimst/master
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
literacyapp authored Jan 30, 2017
2 parents dc19ff8 + 39794b6 commit 74a16bc
Show file tree
Hide file tree
Showing 120 changed files with 126,591 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ captures/

# Intellij
*.iml
.idea/workspace.xml
.idea

# Keystore files
*.jks
18 changes: 18 additions & 0 deletions .travis.yml
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
32 changes: 32 additions & 0 deletions app/build.gradle
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'
}
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);
}
}
28 changes: 28 additions & 0 deletions app/src/main/AndroidManifest.xml
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 app/src/main/java/org/literacyapp/visemes/FaceActivity.java
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");
}
});
}
}
Loading

0 comments on commit 74a16bc

Please sign in to comment.