From 9bc4183af8da2be5b8c25d8aa81e460c04ce9c01 Mon Sep 17 00:00:00 2001 From: K M H Mubin Date: Sun, 28 Feb 2021 02:05:49 +0600 Subject: [PATCH 1/7] project #3: initial commit --- DiceRoller/.gitignore | 15 ++ DiceRoller/.idea/$CACHE_FILE$ | 17 ++ DiceRoller/.idea/.gitignore | 3 + DiceRoller/.idea/.name | 1 + DiceRoller/.idea/compiler.xml | 6 + DiceRoller/.idea/dictionaries | 6 + DiceRoller/.idea/gradle.xml | 22 +++ DiceRoller/.idea/jarRepositories.xml | 25 +++ DiceRoller/.idea/misc.xml | 9 + DiceRoller/app/.gitignore | 1 + DiceRoller/app/build.gradle | 45 +++++ DiceRoller/app/proguard-rules.pro | 21 +++ .../diceroller/ExampleInstrumentedTest.kt | 24 +++ DiceRoller/app/src/main/AndroidManifest.xml | 21 +++ .../com/example/diceroller/MainActivity.kt | 11 ++ .../drawable-v24/ic_launcher_foreground.xml | 30 +++ .../res/drawable/ic_launcher_background.xml | 170 +++++++++++++++++ .../app/src/main/res/layout/activity_main.xml | 28 +++ .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes .../app/src/main/res/values-night/themes.xml | 16 ++ DiceRoller/app/src/main/res/values/colors.xml | 10 + .../app/src/main/res/values/strings.xml | 4 + DiceRoller/app/src/main/res/values/themes.xml | 16 ++ .../com/example/diceroller/ExampleUnitTest.kt | 17 ++ DiceRoller/build.gradle | 26 +++ DiceRoller/gradle.properties | 21 +++ DiceRoller/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 54329 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + DiceRoller/gradlew | 172 ++++++++++++++++++ DiceRoller/gradlew.bat | 84 +++++++++ DiceRoller/settings.gradle | 2 + 42 files changed, 839 insertions(+) create mode 100644 DiceRoller/.gitignore create mode 100644 DiceRoller/.idea/$CACHE_FILE$ create mode 100644 DiceRoller/.idea/.gitignore create mode 100644 DiceRoller/.idea/.name create mode 100644 DiceRoller/.idea/compiler.xml create mode 100644 DiceRoller/.idea/dictionaries create mode 100644 DiceRoller/.idea/gradle.xml create mode 100644 DiceRoller/.idea/jarRepositories.xml create mode 100644 DiceRoller/.idea/misc.xml create mode 100644 DiceRoller/app/.gitignore create mode 100644 DiceRoller/app/build.gradle create mode 100644 DiceRoller/app/proguard-rules.pro create mode 100644 DiceRoller/app/src/androidTest/java/com/example/diceroller/ExampleInstrumentedTest.kt create mode 100644 DiceRoller/app/src/main/AndroidManifest.xml create mode 100644 DiceRoller/app/src/main/java/com/example/diceroller/MainActivity.kt create mode 100644 DiceRoller/app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 DiceRoller/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 DiceRoller/app/src/main/res/layout/activity_main.xml create mode 100644 DiceRoller/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 DiceRoller/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 DiceRoller/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 DiceRoller/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 DiceRoller/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 DiceRoller/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 DiceRoller/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 DiceRoller/app/src/main/res/values-night/themes.xml create mode 100644 DiceRoller/app/src/main/res/values/colors.xml create mode 100644 DiceRoller/app/src/main/res/values/strings.xml create mode 100644 DiceRoller/app/src/main/res/values/themes.xml create mode 100644 DiceRoller/app/src/test/java/com/example/diceroller/ExampleUnitTest.kt create mode 100644 DiceRoller/build.gradle create mode 100644 DiceRoller/gradle.properties create mode 100644 DiceRoller/gradle/wrapper/gradle-wrapper.jar create mode 100644 DiceRoller/gradle/wrapper/gradle-wrapper.properties create mode 100644 DiceRoller/gradlew create mode 100644 DiceRoller/gradlew.bat create mode 100644 DiceRoller/settings.gradle diff --git a/DiceRoller/.gitignore b/DiceRoller/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/DiceRoller/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/DiceRoller/.idea/$CACHE_FILE$ b/DiceRoller/.idea/$CACHE_FILE$ new file mode 100644 index 0000000..f9784d3 --- /dev/null +++ b/DiceRoller/.idea/$CACHE_FILE$ @@ -0,0 +1,17 @@ + + + + + + + + + + + Android + + + + + + \ No newline at end of file diff --git a/DiceRoller/.idea/.gitignore b/DiceRoller/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/DiceRoller/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/DiceRoller/.idea/.name b/DiceRoller/.idea/.name new file mode 100644 index 0000000..a2ed666 --- /dev/null +++ b/DiceRoller/.idea/.name @@ -0,0 +1 @@ +Dice Roller \ No newline at end of file diff --git a/DiceRoller/.idea/compiler.xml b/DiceRoller/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/DiceRoller/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DiceRoller/.idea/dictionaries b/DiceRoller/.idea/dictionaries new file mode 100644 index 0000000..584b056 --- /dev/null +++ b/DiceRoller/.idea/dictionaries @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DiceRoller/.idea/gradle.xml b/DiceRoller/.idea/gradle.xml new file mode 100644 index 0000000..23a89bb --- /dev/null +++ b/DiceRoller/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/DiceRoller/.idea/jarRepositories.xml b/DiceRoller/.idea/jarRepositories.xml new file mode 100644 index 0000000..a5f05cd --- /dev/null +++ b/DiceRoller/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/DiceRoller/.idea/misc.xml b/DiceRoller/.idea/misc.xml new file mode 100644 index 0000000..d5d35ec --- /dev/null +++ b/DiceRoller/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/DiceRoller/app/.gitignore b/DiceRoller/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/DiceRoller/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/DiceRoller/app/build.gradle b/DiceRoller/app/build.gradle new file mode 100644 index 0000000..354217c --- /dev/null +++ b/DiceRoller/app/build.gradle @@ -0,0 +1,45 @@ +plugins { + id 'com.android.application' + id 'kotlin-android' +} + +android { + compileSdkVersion 30 + buildToolsVersion "30.0.3" + + defaultConfig { + applicationId "com.example.diceroller" + minSdkVersion 19 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'androidx.core:core-ktx:1.3.2' + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.3.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' +} \ No newline at end of file diff --git a/DiceRoller/app/proguard-rules.pro b/DiceRoller/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/DiceRoller/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/DiceRoller/app/src/androidTest/java/com/example/diceroller/ExampleInstrumentedTest.kt b/DiceRoller/app/src/androidTest/java/com/example/diceroller/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..56697a2 --- /dev/null +++ b/DiceRoller/app/src/androidTest/java/com/example/diceroller/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.diceroller + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.diceroller", appContext.packageName) + } +} \ No newline at end of file diff --git a/DiceRoller/app/src/main/AndroidManifest.xml b/DiceRoller/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..1c65d16 --- /dev/null +++ b/DiceRoller/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DiceRoller/app/src/main/java/com/example/diceroller/MainActivity.kt b/DiceRoller/app/src/main/java/com/example/diceroller/MainActivity.kt new file mode 100644 index 0000000..ca0efd0 --- /dev/null +++ b/DiceRoller/app/src/main/java/com/example/diceroller/MainActivity.kt @@ -0,0 +1,11 @@ +package com.example.diceroller + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + } +} \ No newline at end of file diff --git a/DiceRoller/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/DiceRoller/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/DiceRoller/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/DiceRoller/app/src/main/res/drawable/ic_launcher_background.xml b/DiceRoller/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/DiceRoller/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DiceRoller/app/src/main/res/layout/activity_main.xml b/DiceRoller/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..4d117be --- /dev/null +++ b/DiceRoller/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,28 @@ + + + + + +