Skip to content

Commit

Permalink
v1.0.0 fully functional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ycfelix committed Apr 14, 2019
1 parent c05a9c4 commit 23efc80
Show file tree
Hide file tree
Showing 66 changed files with 906 additions and 706 deletions.
4 changes: 3 additions & 1 deletion emotion/.gitignore → .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/caches/build_file_checksums.ser
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions emotion/.idea/gradle.xml → .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
32 changes: 17 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
apply plugin: 'com.android.application'

android {

configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
compileSdkVersion 28
defaultConfig {
multiDexEnabled true
applicationId "freeriders.emotionrecognizer"
applicationId "com.example.ycfelix.myapplication"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
Expand All @@ -16,31 +20,29 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

}

packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'x86_64'
universalApk true
}
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/INDEX.LIST'
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services:11.2.0'
api 'com.affectiva.android:affdexsdk:3.2'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
implementation 'com.github.alshell7:VokaturiAndroid:1.03'
api 'com.google.cloud:google-cloud-language:1.49.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.cloud:google-cloud-storage:1.49.0'
api group: 'com.google.apis', name: 'google-api-services-language', version: 'v1-rev388-1.22.0' exclude module: 'httpclient'
api group: 'com.google.api-client', name: 'google-api-client-android', version: '1.22.0' exclude module: 'httpclient'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
implementation 'com.jakewharton:butterknife:8.7.0'
implementation 'com.google.api-client:google-api-client-android:1.23.0'
}
8 changes: 2 additions & 6 deletions emotion/app/proguard-rules.pro → app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\AS V5-573G\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.emotion.emotion;
package com.example.ycfelix.myapplication;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -10,17 +10,17 @@
import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.emotion.emotion", appContext.getPackageName());
assertEquals("com.example.ycfelix.myapplication", appContext.getPackageName());
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.emotion.emotion">
<uses-permission-sdk-23 android:name="android.permission.INTERNET" />
<uses-permission-sdk-23 android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission-sdk-23 android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
package="com.example.ycfelix.myapplication">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:allowBackup="true"
Expand All @@ -16,7 +12,10 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.emotion.emotion.MainActivity">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Loading

0 comments on commit 23efc80

Please sign in to comment.