diff --git a/LICENSE b/LICENSE index c502a96..78207ea 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Mohamed Zaitoon. +Copyright (c) 2019 ZaitoonLibs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 7fcbf5e..3bcd0fb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![](https://jitpack.io/v/tk.mohamed-zaitoon/mzhelper.svg)](https://jitpack.io/#tk.mohamed-zaitoon/mzhelper) + +[![](https://jitpack.io/v/io.github.mohamed-zaitoon/mzhelper.svg)](https://jitpack.io/#io.github.mohamed-zaitoon/mzhelper) An Android library that provides most of used in one Class. @@ -18,22 +19,23 @@ repositories { } dependencies { +implementation 'io.github.mohamed-zaitoon:helper:1.2' + - implementation 'tk.mohamed-zaitoon:mzhelper:1.1' } ``` ## Tutorial For Tutorial Visit: - [Docs](https://www.mohamed-zaitoon.tk/mzhelper/docs) + [Docs](https://mohamed-zaitoon.github.io/helper/docs) ## Progaurd In progaurd-rules.pro add this lines: ```txt --keepclassmembers class tk.mohamed_zaitoon.mzhelper.** {*; } --keep public class tk.mohamed_zaitoon.mzhelper.** { *;} --keepclassmembers interface tk.mohamed_zaitoon.mzhelper.** {*;} --keep public interface tk.mohamed_zaitoon.mzhelper.** {*;} +-keepclassmembers class com.zaitoonlibs.helper.** {*; } +-keep public class com.zaitoonlibs.helper.** { *;} +-keepclassmembers interface com.zaitoonlibs.helper.** {*;} +-keep public interface com.zaitoonlibs.helper.** {*;} ``` @@ -41,7 +43,7 @@ dependencies { ```txt MIT License -Copyright (c) 2019 Mohamed Zaitoon +Copyright (c) 2019 ZaitoonLibs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/app/src/main/java/tk/mycompany/myapp2/MainActivity.java b/app/src/main/java/com/mycompany/myapp2/MainActivity.java similarity index 99% rename from app/src/main/java/tk/mycompany/myapp2/MainActivity.java rename to app/src/main/java/com/mycompany/myapp2/MainActivity.java index d81939e..1a7379d 100644 --- a/app/src/main/java/tk/mycompany/myapp2/MainActivity.java +++ b/app/src/main/java/com/mycompany/myapp2/MainActivity.java @@ -1,6 +1,6 @@ /* Created by Mohamed Zaitoon */ -package tk.mycompany.myapp2; +package com.mycompany.myapp2; import android.app.*; import android.os.*; diff --git a/app/src/main/java/tk/mycompany/myapp2/MyApp.java b/app/src/main/java/com/mycompany/myapp2/MyApp.java similarity index 90% rename from app/src/main/java/tk/mycompany/myapp2/MyApp.java rename to app/src/main/java/com/mycompany/myapp2/MyApp.java index 8cb2230..294b4d5 100644 --- a/app/src/main/java/tk/mycompany/myapp2/MyApp.java +++ b/app/src/main/java/com/mycompany/myapp2/MyApp.java @@ -1,12 +1,12 @@ /* Orginal file: MyApp.java bgteam.assitant@outlook.com \com.mycompany.myapp2*/ -package tk.mycompany.myapp2; +package com.mycompany.myapp2; import java.util.List; import java.util.List; import android.app.*; -import tk.tony.util.*; +import com.tony.util.*; public class MyApp extends Application diff --git a/build.gradle b/build.gradle index 1adf238..2b25700 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ subprojects { if (getPlugins().hasPlugin('com.android.library')) { task javadoc(type: Javadoc) { failOnError false - title = 'mzhelper API' + title = 'helper API' exclude '**/internal/**' source = android.sourceSets.main.java.sourceFiles classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) diff --git a/library/build.gradle b/library/build.gradle index aa48e43..d9cf2f0 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,8 +1,8 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' -group='tk.mohamed-zaitoon' -version "1.1" +group='io.github.mohamed-zaitoon' +version "1.2" android { diff --git a/library/proguard-rules.pro b/library/proguard-rules.pro index c9de00b..3e285d1 100644 --- a/library/proguard-rules.pro +++ b/library/proguard-rules.pro @@ -1,6 +1,6 @@ -printmapping out.map -keepparameternames --renamesourcefileattribute MohamedZaitoon +-renamesourcefileattribute ZaitoonSource -keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,EnclosingMethod diff --git a/library/proguard-user.txt b/library/proguard-user.txt index 35689c6..b6512b3 100644 --- a/library/proguard-user.txt +++ b/library/proguard-user.txt @@ -1,4 +1,4 @@ --keepclassmembers class tk.mohamed_zaitoon.mzhelper.** {*; } --keep public class tk.mohamed_zaitoon.mzhelper.** { *;} --keepclassmembers interface tk.mohamed_zaitoon.mzhelper.** {*;} --keep public interface tk.mohamed_zaitoon.mzhelper.** {*;} +-keepclassmembers class com.zaitoonlibs.helper.** {*; } +-keep public class com.zaitoonlibs.helper.** { *;} +-keepclassmembers interface com.zaitoonlibs.helper.** {*;} +-keep public interface com.zaitoonlibs.helper.** {*;} diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index 6f57f14..8968a17 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -2,9 +2,8 @@ + package="com.zaitoonlibs.helper" > diff --git a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/MzHelper.java b/library/src/main/java/com/zaitoonlibs/helper/Helper.java similarity index 99% rename from library/src/main/java/tk/mohamed_zaitoon/mzhelper/MzHelper.java rename to library/src/main/java/com/zaitoonlibs/helper/Helper.java index 10bdb83..c9d8c58 100644 --- a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/MzHelper.java +++ b/library/src/main/java/com/zaitoonlibs/helper/Helper.java @@ -1,7 +1,7 @@ /* Orginal file: MzUtils.java bgteam.assitant@outlook.com \com.tony.util*/ - package tk.mohamed_zaitoon.mzhelper; + package com.zaitoonlibs.helper; import android.*; import android.app.*; @@ -18,9 +18,10 @@ import android.view.*; import java.util.*; import java.io.*; +import com.zaitoonlibs.helper.*; - public final class MzHelper + public final class Helper //{ { @@ -452,7 +453,7 @@ public static String decode(String str){ //return com.tony.util.b.a(str); - return tk.mohamed_zaitoon.mzhelper.a.a(str); + return com.zaitoonlibs.helper.a.a(str); //} } @@ -461,7 +462,7 @@ public static String decode(String str){ public static String encode(String str){ - return tk.mohamed_zaitoon.mzhelper.a.c(str); + return com.zaitoonlibs.helper.a.c(str); //} } @@ -796,7 +797,7 @@ public static String getCountryCode(Context Context){ public static void launchApp(Context act, String str){ //if (PackagesUtils.isAppEnabled(act, str)) { - if (MzHelper.isAppEnabled(act, str)) { + if (Helper.isAppEnabled(act, str)) { //Intent launchIntent = act.getPackageManager().getLaunchIntentForPackage(str); Intent launchIntent = act.getPackageManager().getLaunchIntentForPackage(str); @@ -828,7 +829,7 @@ public static void openUrl(Context Context, String url, String chooser){ //} } //if ( PackagesUtils.isAppEnabled ( Context, l001321 ( 1011 ) ) ) - if ( MzHelper.isAppEnabled ( Context, l001321 ( 1011 ) ) ) + if ( Helper.isAppEnabled ( Context, l001321 ( 1011 ) ) ) //{ { diff --git a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/TimerInterface.java b/library/src/main/java/com/zaitoonlibs/helper/TimerInterface.java similarity index 91% rename from library/src/main/java/tk/mohamed_zaitoon/mzhelper/TimerInterface.java rename to library/src/main/java/com/zaitoonlibs/helper/TimerInterface.java index 3fbf243..9bca04b 100644 --- a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/TimerInterface.java +++ b/library/src/main/java/com/zaitoonlibs/helper/TimerInterface.java @@ -1,7 +1,7 @@ /* Orginal file: TimerInterface.java bgteam.assitant@outlook.com \com.tony.interfaces*/ -package tk.mohamed_zaitoon.mzhelper; +package com.zaitoonlibs.helper; import java.util.List; //import java.util.List; import java.util.List; diff --git a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/a.java b/library/src/main/java/com/zaitoonlibs/helper/a.java similarity index 99% rename from library/src/main/java/tk/mohamed_zaitoon/mzhelper/a.java rename to library/src/main/java/com/zaitoonlibs/helper/a.java index 4791b2e..e1f872c 100644 --- a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/a.java +++ b/library/src/main/java/com/zaitoonlibs/helper/a.java @@ -1,7 +1,8 @@ /* Orginal file: b.java bgteam.assitant@outlook.com \com.tony.util*/ -package tk.mohamed_zaitoon.mzhelper; +package com.zaitoonlibs.helper; + import java.util.List; //import java.util.List; import java.util.List; diff --git a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/b.java b/library/src/main/java/com/zaitoonlibs/helper/b.java similarity index 76% rename from library/src/main/java/tk/mohamed_zaitoon/mzhelper/b.java rename to library/src/main/java/com/zaitoonlibs/helper/b.java index b5fadca..3a9bdcd 100644 --- a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/b.java +++ b/library/src/main/java/com/zaitoonlibs/helper/b.java @@ -1,4 +1,4 @@ -package tk.mohamed_zaitoon.mzhelper; +package com.zaitoonlibs.helper; final class b implements Runnable @@ -10,10 +10,10 @@ final class b implements Runnable //private com.tony.interfaces.TimerInterface timer; - private tk.mohamed_zaitoon.mzhelper.TimerInterface timer; + private com.zaitoonlibs.helper.TimerInterface timer; //public c(com.tony.interfaces.TimerInterface t){ - public b(tk.mohamed_zaitoon.mzhelper.TimerInterface t){ + public b(com.zaitoonlibs.helper.TimerInterface t){ //this.timer = t; this.timer = t; diff --git a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/c.java b/library/src/main/java/com/zaitoonlibs/helper/c.java similarity index 95% rename from library/src/main/java/tk/mohamed_zaitoon/mzhelper/c.java rename to library/src/main/java/com/zaitoonlibs/helper/c.java index 1d2a407..cbd98b8 100644 --- a/library/src/main/java/tk/mohamed_zaitoon/mzhelper/c.java +++ b/library/src/main/java/com/zaitoonlibs/helper/c.java @@ -1,4 +1,4 @@ -package tk.mohamed_zaitoon.mzhelper; +package com.zaitoonlibs.helper; import java.util.*; import android.app.*; diff --git a/library/src/main/resources/Helper.properties b/library/src/main/resources/Helper.properties new file mode 100644 index 0000000..cb9ad68 --- /dev/null +++ b/library/src/main/resources/Helper.properties @@ -0,0 +1,3 @@ +version=1.2 +url=https://mohamed-zitoon.github.io/mzhelper + diff --git a/library/src/main/resources/MzHelper.properties b/library/src/main/resources/MzHelper.properties deleted file mode 100644 index 33ea1d2..0000000 --- a/library/src/main/resources/MzHelper.properties +++ /dev/null @@ -1,3 +0,0 @@ -version=1.1 -url=https://www.mohamed-zitoon.tk/mzhelper -