Skip to content

Commit d5b166c

Browse files
committed
Initial Upload
Upload all of the code
0 parents  commit d5b166c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2639
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

.idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/CMakeLists.txt

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Sets the minimum version of CMake required to build the native
2+
# library. You should either keep the default value or only pass a
3+
# value of 3.4.0 or lower.
4+
5+
cmake_minimum_required(VERSION 3.4.1)
6+
7+
# Creates and names a library, sets it as either STATIC
8+
# or SHARED, and provides the relative paths to its source code.
9+
# You can define multiple libraries, and CMake builds it for you.
10+
# Gradle automatically packages shared libraries with your APK.
11+
12+
add_library( # Sets the name of the library.
13+
native-lib
14+
15+
# Sets the library as a shared library.
16+
SHARED
17+
18+
# Provides a relative path to your source file(s).
19+
# Associated headers in the same location as their source
20+
# file are automatically included.
21+
src/main/cpp/native-lib.cpp )
22+
23+
# Searches for a specified prebuilt library and stores the path as a
24+
# variable. Because system libraries are included in the search path by
25+
# default, you only need to specify the name of the public NDK library
26+
# you want to add. CMake verifies that the library exists before
27+
# completing its build.
28+
29+
find_library( # Sets the name of the path variable.
30+
log-lib
31+
32+
# Specifies the name of the NDK library that
33+
# you want CMake to locate.
34+
log )
35+
36+
# Specifies libraries CMake should link to your target library. You
37+
# can link multiple libraries, such as libraries you define in the
38+
# build script, prebuilt third-party libraries, or system libraries.
39+
40+
target_link_libraries( # Specifies the target library.
41+
native-lib
42+
43+
# Links the target library to the log library
44+
# included in the NDK.
45+
${log-lib} )

app/build.gradle

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 24
5+
buildToolsVersion "24.0.2"
6+
defaultConfig {
7+
applicationId "com.nathanbarton.guitarfxapp"
8+
minSdkVersion 21
9+
targetSdkVersion 24
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
externalNativeBuild {
14+
cmake {
15+
cppFlags ""
16+
}
17+
}
18+
}
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
externalNativeBuild {
26+
cmake {
27+
path "CMakeLists.txt"
28+
}
29+
}
30+
}
31+
32+
dependencies {
33+
compile fileTree(dir: 'libs', include: ['*.jar'])
34+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
35+
exclude group: 'com.android.support', module: 'support-annotations'
36+
})
37+
compile 'com.android.support:appcompat-v7:24.2.1'
38+
compile 'com.android.support:design:24.2.1'
39+
testCompile 'junit:junit:4.12'
40+
}

app/proguard-rules.pro

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/NathanBarton/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.nathanbarton.guitarfxapp;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumentation test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.nathanbarton.guitarfxapp", appContext.getPackageName());
25+
}
26+
}

app/src/main/AndroidManifest.xml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.nathanbarton.guitarfxapp">
4+
5+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
6+
7+
<application
8+
android:allowBackup="true"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="Guitar FX"
11+
android:supportsRtl="true"
12+
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
13+
14+
<activity
15+
android:name=".OverdriveActivity"
16+
android:screenOrientation="portrait">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
22+
</activity>
23+
24+
<activity
25+
android:name=".DistortionActivity"
26+
android:screenOrientation="portrait">
27+
<intent-filter>
28+
<action android:name="android.intent.action.DEFAULT" />
29+
</intent-filter>
30+
31+
</activity>
32+
33+
<activity
34+
android:name=".FuzzActivity"
35+
android:screenOrientation="portrait">
36+
<intent-filter>
37+
<action android:name="android.intent.action.DEFAULT" />
38+
</intent-filter>
39+
40+
</activity>
41+
42+
<activity
43+
android:name=".AboutActivity"
44+
android:screenOrientation="portrait">
45+
<intent-filter>
46+
<action android:name="android.intent.action.DEFAULT" />
47+
</intent-filter>
48+
49+
</activity>
50+
51+
</application>
52+
53+
</manifest>
50.9 KB
Binary file not shown.

app/src/main/cpp/native-lib.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <jni.h>
2+
#include <string>
3+
4+
extern "C"
5+
jstring
6+
Java_com_nathanbarton_guitarfxapp_MainActivity_stringFromJNI(
7+
JNIEnv* env,
8+
jobject /* this */) {
9+
std::string hello = "Hello from C++";
10+
return env->NewStringUTF(hello.c_str());
11+
}

app/src/main/ic_launcher-web.png

13.3 KB
Loading

0 commit comments

Comments
 (0)