Skip to content

Commit

Permalink
A002
Browse files Browse the repository at this point in the history
  • Loading branch information
j3sawyer committed Jan 26, 2017
1 parent 11e678f commit 29d0056
Show file tree
Hide file tree
Showing 1,113 changed files with 375,228 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.idea
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
app/src/main/assets/x86/geph
app/src/main/assets/arm/geph
prebuild
app/src/main/jniLibs
*.apk
17 changes: 17 additions & 0 deletions UPDATE-DAEMON.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

if [ "$#" -ne 1 ]; then
echo "Usage: $0 <version>" >&2
exit 1
fi

PREBUILD="./prebuild"
# ABI names must match with arguments provided to android.defaultConfig.ndk.abiFilters
ARM_DIR=$PREBUILD"/armeabi"
X86_DIR=$PREBUILD"/x86"
TARGET="libgeph.so"

mkdir -p $ARM_DIR
mkdir -p $X86_DIR
curl https://dl.geph.io/XGO_BUILD/geph-v$1-android-16-arm > $ARM_DIR/$TARGET
curl https://dl.geph.io/XGO_BUILD/geph-v$1-android-16-386 > $X86_DIR/$TARGET
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
56 changes: 56 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "23.0.1"
defaultConfig {
applicationId 'io.geph.android'
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "A002"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters 'armeabi', 'x86'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
ndkBuild {
path 'jni/Android.mk'
}
}
productFlavors {
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.google.code.gson:gson:2.7'
testCompile 'junit:junit:4.12'
}

task copyGephBinaries(type: Copy) {
description = 'Copying geph binaries from the prebuild directory'
from '../prebuild/'
into 'src/main/jniLibs'
}

afterEvaluate {
android.applicationVariants.all { variant ->
variant.javaCompiler.dependsOn(copyGephBinaries)
}
}
1 change: 1 addition & 0 deletions app/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../badvpn/Android.mk
2 changes: 2 additions & 0 deletions app/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_ABI := armeabi x86
APP_PLATFORM := android-8
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/w3kim/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive 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:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
40 changes: 40 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.geph.android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="io.geph.android.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".ui.SettingsActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />

<service
android:name="io.geph.android.tun2socks.TunnelVpnService"
android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
</application>

</manifest>
Loading

0 comments on commit 29d0056

Please sign in to comment.