From 027b7acaf8522bf59a2b28fbdedb0e0aee15fde6 Mon Sep 17 00:00:00 2001 From: shuyu <359369982@qq.com> Date: Fri, 11 Nov 2016 15:32:56 +0800 Subject: [PATCH] fix project --- .gitignore | 9 + app/.gitignore | 1 + app/build.gradle | 36 ++ app/proguard-rules.pro | 17 + app/src/main/AndroidManifest.xml | 40 ++ .../example/gsyvideoplayer/MainActivity.java | 29 + app/src/main/res/layout/activity_main.xml | 19 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10486 bytes app/src/main/res/values-w820dp/dimens.xml | 6 + app/src/main/res/values/colors.xml | 6 + app/src/main/res/values/dimens.xml | 5 + app/src/main/res/values/strings.xml | 3 + app/src/main/res/values/styles.xml | 19 + build.gradle | 24 + gradle.properties | 17 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 53636 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 160 +++++ gradlew.bat | 90 +++ gsyVideoPlayer/.gitignore | 1 + gsyVideoPlayer/build.gradle | 42 ++ gsyVideoPlayer/proguard-rules.pro | 17 + gsyVideoPlayer/src/main/AndroidManifest.xml | 11 + .../video/StandardGSYVideoPlayer.java | 570 ++++++++++++++++++ .../main/res/drawable-xxhdpi/video_back.png | Bin 0 -> 495 bytes .../drawable-xxhdpi/video_backward_icon.png | Bin 0 -> 1392 bytes .../res/drawable-xxhdpi/video_enlarge.png | Bin 0 -> 522 bytes .../drawable-xxhdpi/video_error_normal.png | Bin 0 -> 5691 bytes .../drawable-xxhdpi/video_error_pressed.png | Bin 0 -> 5646 bytes .../drawable-xxhdpi/video_forward_icon.png | Bin 0 -> 1381 bytes .../res/drawable-xxhdpi/video_loading_bg.png | Bin 0 -> 1084 bytes .../drawable-xxhdpi/video_pause_normal.png | Bin 0 -> 6056 bytes .../drawable-xxhdpi/video_pause_pressed.png | Bin 0 -> 6086 bytes .../res/drawable-xxhdpi/video_play_normal.png | Bin 0 -> 6295 bytes .../drawable-xxhdpi/video_play_pressed.png | Bin 0 -> 6297 bytes .../main/res/drawable-xxhdpi/video_shrink.png | Bin 0 -> 600 bytes .../res/drawable-xxhdpi/video_volume_icon.png | Bin 0 -> 1986 bytes gsyVideoPlayer/src/main/res/values/colors.xml | 6 + .../src/main/res/values/strings.xml | 9 + settings.gradle | 1 + 44 files changed, 1144 insertions(+) create mode 100644 .gitignore create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/proguard-rules.pro create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/example/gsyvideoplayer/MainActivity.java create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/values-w820dp/dimens.xml create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/dimens.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 gsyVideoPlayer/.gitignore create mode 100644 gsyVideoPlayer/build.gradle create mode 100644 gsyVideoPlayer/proguard-rules.pro create mode 100644 gsyVideoPlayer/src/main/AndroidManifest.xml create mode 100644 gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/video/StandardGSYVideoPlayer.java create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_back.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_backward_icon.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_enlarge.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_error_normal.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_error_pressed.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_forward_icon.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_loading_bg.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_pause_normal.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_pause_pressed.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_play_normal.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_play_pressed.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_shrink.png create mode 100644 gsyVideoPlayer/src/main/res/drawable-xxhdpi/video_volume_icon.png create mode 100644 gsyVideoPlayer/src/main/res/values/colors.xml create mode 100644 gsyVideoPlayer/src/main/res/values/strings.xml create mode 100644 settings.gradle 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 @@ + + + +