Skip to content

Commit b512649

Browse files
committed
[minor] move android app to a standalone folder
- to clearly see different folders between app and modules
1 parent 6f85bfa commit b512649

35 files changed

+66
-48
lines changed
File renamed without changes.
File renamed without changes.

app/app/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.3"
6+
defaultConfig {
7+
applicationId "seven.drawalive.nodebase"
8+
minSdkVersion 15
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25+
exclude group: 'com.android.support', module: 'support-annotations'
26+
})
27+
compile 'com.android.support:appcompat-v7:25.0.1'
28+
testCompile 'junit:junit:4.12'
29+
}
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package seven.drawalive.nodebase;
2+
3+
import android.content.Context;
4+
import android.os.Environment;
5+
6+
import java.io.File;
7+
8+
public class NodeBasePTest {
9+
public NodeBasePTest(Context context) {
10+
System.out.println(Environment.getExternalStorageDirectory());
11+
try {
12+
File f = new File(Environment.getExternalStorageDirectory(), "test_write");
13+
f.createNewFile();
14+
} catch (Exception e) {
15+
e.printStackTrace();
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)