diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CustomToast/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java b/CustomToast/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java index d1b8a5f..521827d 100644 --- a/CustomToast/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java +++ b/CustomToast/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java @@ -21,6 +21,6 @@ public class ExampleInstrumentedTest { public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - assertEquals("com.sadadnan.customtoastlib.test", appContext.getPackageName()); + assertEquals("com.sadadnan.customtoastproject.test", appContext.getPackageName()); } } \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 8a4859b..9903849 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,7 +7,7 @@ android { buildToolsVersion "30.0.3" defaultConfig { - applicationId "com.sadadnan.customtoastlib" + applicationId "com.sadadnan.customtoastproject" minSdkVersion 16 targetSdkVersion 30 versionCode 1 @@ -33,6 +33,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation project(path: ':CustomToast') testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' diff --git a/app/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java index 0c29121..1fdbfe4 100644 --- a/app/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/sadadnan/customtoastlib/ExampleInstrumentedTest.java @@ -21,6 +21,6 @@ public class ExampleInstrumentedTest { public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - assertEquals("com.sadadnan.customtoastlib", appContext.getPackageName()); + assertEquals("com.sadadnan.customtoastproject", appContext.getPackageName()); } } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2a0fd9f..f0c1c87 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.CustomToast"> - + diff --git a/app/src/main/java/com/sadadnan/customtoastlib/MainActivity.java b/app/src/main/java/com/sadadnan/customtoastlib/MainActivity.java index 788237d..413b7c5 100644 --- a/app/src/main/java/com/sadadnan/customtoastlib/MainActivity.java +++ b/app/src/main/java/com/sadadnan/customtoastlib/MainActivity.java @@ -10,5 +10,7 @@ public class MainActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); + + CustomToast.ShowSuccessToast(this,false,"Congratulations"); } } \ No newline at end of file