Skip to content

Commit

Permalink
0.0.41.beta7
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzue committed Jul 31, 2021
1 parent a80e685 commit 0b4817e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
3 changes: 0 additions & 3 deletions DialogX/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'

group = "com.kongzue.dialogx"
version = BUILD_VERSION
Expand All @@ -10,8 +9,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode BUILD_VERSION_INT as int
versionName BUILD_VERSION

consumerProguardFiles "consumer-rules.pro"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,19 @@ protected void beforeShow() {
init(null);
if (getContext() == null) {
error("DialogX 未初始化。\n请检查是否在启动对话框前进行初始化操作,使用以下代码进行初始化:\nDialogX.init(context);\n\n另外建议您前往查看 DialogX 的文档进行使用:https://github.com/kongzue/DialogX");
return;
}
}
if (style.styleVer != DialogXStyle.styleVer) {
error("DialogX 所引用的 Style 不符合当前适用版本:" + DialogXStyle.styleVer + " 引入的 Style(" + style.getClass().getSimpleName() + ") 版本" + style.styleVer);
}

//Hide IME
View view = ((Activity)BaseDialog.getContext()).getCurrentFocus();
if (view != null) {
InputMethodManager imm = (InputMethodManager) BaseDialog.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
}
}

protected String getString(int titleResId) {
Expand Down
3 changes: 0 additions & 3 deletions DialogXIOSStyle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'

def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
def gitUrl = 'https://github.com/kongzue/DialogX.git' //Git仓库的地址
Expand All @@ -13,8 +12,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode BUILD_VERSION_INT as int
versionName BUILD_VERSION
}

buildTypes {
Expand Down
3 changes: 0 additions & 3 deletions DialogXKongzueStyle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'

def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
def gitUrl = 'https://github.com/kongzue/DialogX.git' //Git仓库的地址
Expand All @@ -13,8 +12,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode BUILD_VERSION_INT as int
versionName BUILD_VERSION
}

buildTypes {
Expand Down
3 changes: 0 additions & 3 deletions DialogXMIUIStyle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'

def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
def gitUrl = 'https://github.com/kongzue/DialogX.git' //Git仓库的地址
Expand All @@ -13,8 +12,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode BUILD_VERSION_INT as int
versionName BUILD_VERSION

}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/kongzue/dialogxdemo/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class App extends BaseApp<App> {
@Override
public void init() {
DialogX.init(this);
DialogX.implIMPLMode= DialogX.IMPL_MODE.DIALOG_FRAGMENT;
DialogX.implIMPLMode= DialogX.IMPL_MODE.VIEW;
DialogX.useHaptic = true;
DialogX.globalStyle = new MaterialStyle() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

BUILD_VERSION=0.0.41.beta6
BUILD_VERSION=0.0.41.beta7
BUILD_VERSION_INT=40
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

0 comments on commit 0b4817e

Please sign in to comment.