Skip to content

Commit

Permalink
迁移代码库到jitpack上
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchong211 committed Dec 26, 2021
1 parent b9c8214 commit 4030cb1
Show file tree
Hide file tree
Showing 90 changed files with 1,686 additions and 479 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ google-services.json
freeline.py
freeline/
freeline_project_description.json
.idea/
.gradle/
4 changes: 0 additions & 4 deletions .idea/encodings.xml

This file was deleted.

36 changes: 0 additions & 36 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

78 changes: 0 additions & 78 deletions .idea/markdown-navigator.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/markdown-navigator/profiles_settings.xml

This file was deleted.

38 changes: 0 additions & 38 deletions .idea/misc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

55 changes: 55 additions & 0 deletions GalleryPagerLib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries

# Keystore files
*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
Empty file.
9 changes: 9 additions & 0 deletions GalleryPagerLib/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions GalleryPagerLib/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions GalleryPagerLib/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions GalleryPagerLib/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apply plugin: 'com.android.library'
//迁移到jitpack
apply plugin: 'com.github.dcendents.android-maven'


android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionCode 15
versionName "1.2.8"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
abortOnError false
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.annotation:annotation:1.1.0'
}
17 changes: 17 additions & 0 deletions GalleryPagerLib/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 /home/veinhorn/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 *;
#}
9 changes: 9 additions & 0 deletions GalleryPagerLib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yc.gallerypager">

<uses-permission android:name="android.permission.INTERNET" />
<application android:allowBackup="true">
<activity android:name="com.yc.gallerypager.VideoPlayActivity" />
</application>

</manifest>
14 changes: 14 additions & 0 deletions GalleryPagerLib/src/main/java/com/yc/gallerypager/Constants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.yc.gallerypager;


public final class Constants {
public static final String ZOOM = "zoom";
public static final String IS_VIDEO = "isVideo";
public static final String URL = "url";
public static final String IS_LOCKED = "isLocked";
public static final String IMAGE = "image";
public static final String POSITION = "position";

private Constants() {
}
}
Loading

0 comments on commit 4030cb1

Please sign in to comment.