Browse Source

0.0.47.beta15 update

kongzue 2 years ago
parent
commit
06286835aa

+ 1 - 7
.idea/compiler.xml

@@ -1,13 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="CompilerConfiguration">
-    <bytecodeTargetLevel target="1.7">
-      <module name="DialogXDemo.app" target="11" />
-      <module name="DialogXDemo.DialogX" target="11" />
-      <module name="DialogXDemo.DialogXIOSStyle" target="11" />
-      <module name="DialogXDemo.DialogXKongzueStyle" target="11" />
-      <module name="DialogXDemo.DialogXMaterialYou" target="11" />
-      <module name="DialogXDemo.DialogXMIUIStyle" target="11" />
+    <bytecodeTargetLevel target="11">
       <module name="DialogXInterface" target="1.7" />
     </bytecodeTargetLevel>
   </component>

+ 1 - 1
.idea/misc.xml

@@ -347,7 +347,7 @@
       </value>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="11" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
   </component>
   <component name="ProjectType">

+ 3 - 1
DialogX/build.gradle

@@ -40,5 +40,7 @@ dependencies {
     implementation 'androidx.appcompat:appcompat:1.3.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
     compileOnly files('libs\\androidx-rs.jar')
-    api files('libs\\DialogXInterface.jar')
+//    api files('libs\\DialogXInterface.jar')
+//    api project(path: ':DialogXInterface')
+    api "com.kongzue.dialogx.style:DialogXInterface:${DIALOGX_STYLE_VERSION}"
 }

+ 32 - 4
DialogXInterface/build.gradle

@@ -1,11 +1,39 @@
-apply plugin: 'java-library'
+//apply plugin: 'java-library'
+apply plugin: 'com.android.library'
 
+ext {
+    PUBLISH_GROUP_ID = "com.kongzue.dialogx.style"		//项目包名
+    PUBLISH_ARTIFACT_ID = 'DialogXInterface'			//项目名
+    PUBLISH_VERSION = DIALOGX_STYLE_VERSION					//版本号
+}
+apply from: "${rootProject.projectDir}/publish-mavencentral.gradle"
+
+android {
+    compileSdkVersion 30
+
+    defaultConfig {
+        minSdkVersion 19
+        targetSdkVersion 30
+    }
 
+    buildTypes {
+        release {
+            minifyEnabled false
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+        }
+    }
+}
+task sourcesJar(type: Jar) {
+    from android.sourceSets.main.java.srcDirs
+    classifier = 'sources'
+}
 
+artifacts {
+    archives sourcesJar
+}
 dependencies {
     //implementation fileTree(dir: 'libs', include: ['*.jar'])
-    compileOnly files('libs\\android.jar')
 }
 
-sourceCompatibility = "1.7"
-targetCompatibility = "1.7"
+//sourceCompatibility = "1.7"
+//targetCompatibility = "1.7"

BIN
DialogXInterface/libs/android.jar


+ 5 - 0
DialogXInterface/src/main/AndroidManifest.xml

@@ -0,0 +1,5 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.kongzue.dialogx.interfaces">
+
+    /
+</manifest>

+ 2 - 2
README.md

@@ -133,7 +133,7 @@ DialogX 采用了主题分离结构,主框架仅包含 Material 设计风格
 
 <div>
 最新版本:
-<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta14-green.svg" alt="DialogX Release"></a></div>
+<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta15-green.svg" alt="DialogX Release"></a></div>
 
 1) 在 project 的 build.gradle 文件中找到 `allprojects{}` 代码块添加以下代码:
 
@@ -152,7 +152,7 @@ allprojects {
 2) 在 app 的 build.gradle 文件中找到 `dependencies{}` 代码块,并在其中加入以下语句:
 
 ```
-def dialogx_version = "0.0.47.beta14"
+def dialogx_version = "0.0.47.beta15"
 implementation "com.kongzue.dialogx:DialogX:${dialogx_version}"
 ```
 

+ 2 - 2
README_EN.md

@@ -136,7 +136,7 @@ Please choose one of the following two sources to bring in your project.
 
 <div>
 Latest version: 
-<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta14-green.svg" alt="DialogX Release"></a></div>
+<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta15-green.svg" alt="DialogX Release"></a></div>
 
 1) In the project's build.gradle file, find the `allprojects{}` block and add the following code.
 
@@ -155,7 +155,7 @@ allprojects {
 2) Find the `dependencies{}` code block in the app's build.gradle file and add the following statement to it.
 
 ```
-def dialogx_version = "0.0.47.beta14"
+def dialogx_version = "0.0.47.beta15"
 implementation "com.kongzue.dialogx:DialogX:${dialogx_version}"
 ```
 

+ 2 - 2
README_TC.md

@@ -133,7 +133,7 @@ DialogX 採用了主題分離結構,主框架僅包含 Material 設計風格
 
 <div>
 最新版本:
-<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta14-green.svg" alt="DialogX Release"></a></div>
+<a href="https://github.com/kongzue/DialogX/releases"><img src="https://img.shields.io/badge/MavenCentral%20Release-0.0.47.beta15-green.svg" alt="DialogX Release"></a></div>
 
 1) 在 project 的 build.gradle 文件中找到 `allprojects{}` 代碼塊添加以下代碼:
 
@@ -152,7 +152,7 @@ allprojects {
 2) 在 app 的 build.gradle 文件中找到 `dependencies{}` 代碼塊,並在其中加入以下語句:
 
 ```
-def dialogx_version = "0.0.47.beta14"
+def dialogx_version = "0.0.47.beta15"
 implementation "com.kongzue.dialogx:DialogX:${dialogx_version}"
 ```
 

+ 2 - 1
gradle.properties

@@ -19,5 +19,6 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.47.beta14
+BUILD_VERSION=0.0.47.beta15
 BUILD_VERSION_INT=46
+DIALOGX_STYLE_VERSION=5