diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..b3a3ecec8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +.DS_Store +/build +/.idea +/captures +.externalNativeBuild +*.apk diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 000000000..796b96d1c --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 000000000..810669f6a --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,36 @@ +apply plugin: 'com.android.application' +apply plugin: 'com.neenbedankt.android-apt' + +android { + + def globalConfiguration = rootProject.extensions.getByName("ext") + compileSdkVersion globalConfiguration.androidCompileSdkVersion + buildToolsVersion globalConfiguration.androidBuildToolsVersion + + defaultConfig { + applicationId "com.example.gsyvideoplayer" + + minSdkVersion globalConfiguration.androidMinSdkVersion + targetSdkVersion globalConfiguration.androidTargetSdkVersion + + versionCode 1 + versionName "1.0" + + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + def viewDependencies = rootProject.ext.viewDependencies + apt viewDependencies.apt_butterKnife + compile viewDependencies.butterKnife + compile project(':gsyVideoPlayer') + compile 'com.android.support:appcompat-v7:22.2.1' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 000000000..960a34898 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in C:\workSpace\softWare\Android\adt-bundle-windows-x86_64-20140702\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 *; +#} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..3dd7b1654 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,40 @@ + + + + + + + + + + +   + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/gsyvideoplayer/MainActivity.java b/app/src/main/java/com/example/gsyvideoplayer/MainActivity.java new file mode 100644 index 000000000..2789c05a2 --- /dev/null +++ b/app/src/main/java/com/example/gsyvideoplayer/MainActivity.java @@ -0,0 +1,29 @@ +package com.example.gsyvideoplayer; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.widget.Button; + +import com.example.gsyvideoplayer.utils.JumpUtils; + +import butterknife.BindView; +import butterknife.ButterKnife; +import butterknife.OnClick; + +public class MainActivity extends AppCompatActivity { + + @BindView(R.id.open_btn) + Button openBtn; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + ButterKnife.bind(this); + } + + @OnClick(R.id.open_btn) + public void onClick() { + JumpUtils.goToVideoPlayer(this, openBtn); + } +} diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 000000000..2ea84d3ab --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,19 @@ + + + +