yanyi 7 yıl önce
ebeveyn
işleme
2cb615d8c3

+ 1 - 1
.idea/inspectionProfiles/Project_Default.xml

@@ -30,7 +30,7 @@
       <option name="IGNORE_JAVADOC_PERIOD" value="true" />
       <option name="IGNORE_DUPLICATED_THROWS" value="false" />
       <option name="IGNORE_POINT_TO_ITSELF" value="false" />
-      <option name="myAdditionalJavadocTags" value="date" />
+      <option name="myAdditionalJavadocTags" value="date,e-mail,overview" />
     </inspection_tool>
   </profile>
 </component>

+ 0 - 6
.idea/smartfox_info.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="SmartFoxProjectConfig">
-    <option name="projectInspectionClosed" value="true" />
-  </component>
-</project>

+ 2 - 2
build.gradle

@@ -8,8 +8,8 @@ buildscript {
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.0.1'
-        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
-        
+        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
+        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files

+ 80 - 0
datelib/bintrayUpload.gradle

@@ -0,0 +1,80 @@
+// 这里添加下面两行代码。
+apply plugin: 'com.github.dcendents.android-maven'
+apply plugin: 'com.jfrog.bintray'
+
+// 定义两个链接,下面会用到。
+def siteUrl = 'https://github.com/BenYanYi/Logger' // 项目主页。
+def gitUrl = 'https://github.com/BenYanYi/Logger.git' // Git仓库的url。
+
+group = "com.yanyi.benyanyi"// 唯一包名,比如compile 'com.ansen.http:okhttpencapsulation:1.0.1'中的com.ansen.http就是这里配置的。
+version = "0.0.1"//项目引用的版本号,比如compile 'com.ansen.http:okhttpencapsulation:1.0.1'中的1.0.1就是这里配置的。
+install {
+    repositories.mavenInstaller {
+        // This generates POM.xml with proper parameters
+        pom {
+            project {
+                packaging 'aar'
+                // Add your description here
+                name 'multi-format 1D/2D barcode image processing use zxing.'
+                url siteUrl
+                // Set your license
+                licenses {
+                    license {
+                        name 'The Apache Software License, Version 2.0'
+                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+                    }
+                }
+                developers {
+                    developer {
+                        id 'benyanyi'     //填写的一些基本信息
+                        name 'benyanyi'
+                        email 'git@yanyi.red'
+                    }
+                }
+                scm {
+                    connection gitUrl
+                    developerConnection gitUrl
+                    url siteUrl
+                }
+            }
+        }
+    }
+}
+task sourcesJar(type: Jar) {
+    from android.sourceSets.main.java.srcDirs
+    classifier = 'sources'
+}
+task javadoc(type: Javadoc) {
+    source = android.sourceSets.main.java.srcDirs
+    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+}
+task javadocJar(type: Jar, dependsOn: javadoc) {
+    classifier = 'javadoc'
+    from javadoc.destinationDir
+}
+artifacts {
+    archives javadocJar
+    archives sourcesJar
+}
+Properties properties = new Properties()
+properties.load(project.rootProject.file('local.properties').newDataInputStream())
+bintray {
+    user = properties.getProperty("bintray.user")
+    key = properties.getProperty("bintray.apikey")
+    configurations = ['archives']
+    pkg {
+        repo = "DateSelect"
+        name = "DateSelect"   //发布到JCenter上的项目名字
+        websiteUrl = siteUrl
+        vcsUrl = gitUrl
+        licenses = ["Apache-2.0"]
+        publish = true
+    }
+}
+javadoc { //jav doc采用utf-8编码否则会报“GBK的不可映射字符”错误
+    options{
+        encoding "UTF-8"
+        charSet 'UTF-8'
+    }
+}
+//gradlew bintrayUpload    terminal中输入

+ 1 - 2
datelib/build.gradle

@@ -1,6 +1,4 @@
 apply plugin: 'com.android.library'
-apply plugin: 'com.github.dcendents.android-maven'
-group = 'com.github.BenYanYi'
 
 android {
     compileSdkVersion 26
@@ -34,3 +32,4 @@ dependencies {
     androidTestImplementation 'com.android.support.test:runner:1.0.1'
     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
 }
+apply from: 'bintrayUpload.gradle'

+ 1 - 4
datelib/src/main/java/com/yanyi/datelib/SelectPeriod.java

@@ -24,10 +24,7 @@ import java.util.Date;
 import java.util.Locale;
 
 /**
- * @author Administrator
- * @date 2018/5/19 17:24
- * @email ben@yanyi.red
- * @overview
+ * @author myLove
  */
 public class SelectPeriod extends PopupWindow implements View.OnClickListener {
     private String TAG = "SelectPeriod";

+ 0 - 3
datelib/src/main/java/com/yanyi/datelib/config/SelectType.java

@@ -2,9 +2,6 @@ package com.yanyi.datelib.config;
 
 /**
  * @author myLove
- * @date 2018-05-18 17:51
- * @e-mail love@yanyi.red
- * @overview 需要隐藏的类型
  */
 public enum SelectType {
     /**

+ 12 - 10
datelib/src/main/java/com/yanyi/datelib/wheelview/OnWheelChangedListener.java

@@ -18,17 +18,19 @@ package com.yanyi.datelib.wheelview;
 
 /**
  * Wheel changed listener interface.
- * <p>The onChanged() method is called whenever current wheel positions is changed:
- * <li> New Wheel position is set
- * <li> Wheel view is scrolled
+ * The onChanged() method is called whenever current wheel positions is changed:
+ * New Wheel position is set
+ * Wheel view is scrolled
+ *
  * @author myLove
  */
 public interface OnWheelChangedListener {
-	/**
-	 * Callback method to be invoked when current item changed
-	 * @param wheel the wheel view whose state has changed
-	 * @param oldValue the old value of current item
-	 * @param newValue the new value of current item
-	 */
-	void onChanged(WheelView wheel, int oldValue, int newValue);
+    /**
+     * Callback method to be invoked when current item changed
+     *
+     * @param wheel    the wheel view whose state has changed
+     * @param oldValue the old value of current item
+     * @param newValue the new value of current item
+     */
+    void onChanged(WheelView wheel, int oldValue, int newValue);
 }

+ 6 - 4
datelib/src/main/java/com/yanyi/datelib/wheelview/OnWheelClickedListener.java

@@ -18,15 +18,17 @@ package com.yanyi.datelib.wheelview;
 
 /**
  * Wheel clicked listener interface.
- * <p>The onItemClicked() method is called whenever a wheel item is clicked
- * <li> New Wheel position is set
- * <li> Wheel view is scrolled
+ * The onItemClicked() method is called whenever a wheel item is clicked
+ * New Wheel position is set
+ * Wheel view is scrolled
+ *
  * @author myLove
  */
 public interface OnWheelClickedListener {
     /**
      * Callback method to be invoked when current item clicked
-     * @param wheel the wheel view
+     *
+     * @param wheel     the wheel view
      * @param itemIndex the index of clicked item
      */
     void onItemClicked(WheelView wheel, int itemIndex);