diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..a3d5df0 Binary files /dev/null and b/.DS_Store differ diff --git a/APK/.DS_Store b/APK/.DS_Store new file mode 100644 index 0000000..83d0cf9 Binary files /dev/null and b/APK/.DS_Store differ diff --git a/APK/R6S/V1.2.apk b/APK/R6S/V1.2.apk index 37b86ca..83bfedb 100644 Binary files a/APK/R6S/V1.2.apk and b/APK/R6S/V1.2.apk differ diff --git a/R6S/app/build.gradle b/R6S/app/build.gradle index b694563..b129577 100644 --- a/R6S/app/build.gradle +++ b/R6S/app/build.gradle @@ -1,28 +1,37 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 23 + signingConfigs { + release { + storeFile file('/Users/Nicco/Google Drive/App Files/AndroidStudioProjects/keys/R6S.jks') + storePassword "Ek09iG2aB_XMlMe3kQ4mynrnPLi!PXkC" + keyAlias "r6s" + keyPassword "Ek09iG2aB_XMlMe3kQ4mynrnPLi!PXkC" + } + } + compileSdkVersion 24 buildToolsVersion "24.0.1" - defaultConfig { applicationId "io.nicco.r6s" minSdkVersion 19 - targetSdkVersion 23 - versionCode 3 - versionName "1.2" + targetSdkVersion 24 + versionCode 8 + versionName '1.2' } buildTypes { release { - minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release } } + productFlavors { + } } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) + compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:23.4.0' - compile 'com.android.support:design:23.4.0' - compile 'com.android.support:support-v4:23.4.0' + compile 'com.android.support:appcompat-v7:24.2.1' + compile 'com.android.support:design:24.2.1' + compile 'com.android.support:support-v4:24.2.1' } diff --git a/R6S/app/src/main/assets/OPs/1.jpg b/R6S/app/src/main/assets/OPs/1.jpg new file mode 100644 index 0000000..173d9d7 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/1.jpg differ diff --git a/R6S/app/src/main/assets/OPs/10.jpg b/R6S/app/src/main/assets/OPs/10.jpg new file mode 100644 index 0000000..c8a1036 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/10.jpg differ diff --git a/R6S/app/src/main/assets/OPs/11.jpg b/R6S/app/src/main/assets/OPs/11.jpg new file mode 100644 index 0000000..6b43d2c Binary files /dev/null and b/R6S/app/src/main/assets/OPs/11.jpg differ diff --git a/R6S/app/src/main/assets/OPs/12.jpg b/R6S/app/src/main/assets/OPs/12.jpg new file mode 100644 index 0000000..80271a7 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/12.jpg differ diff --git a/R6S/app/src/main/assets/OPs/13.jpg b/R6S/app/src/main/assets/OPs/13.jpg new file mode 100644 index 0000000..643f2d8 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/13.jpg differ diff --git a/R6S/app/src/main/assets/OPs/14.jpg b/R6S/app/src/main/assets/OPs/14.jpg new file mode 100644 index 0000000..68e7d83 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/14.jpg differ diff --git a/R6S/app/src/main/assets/OPs/15.jpg b/R6S/app/src/main/assets/OPs/15.jpg new file mode 100644 index 0000000..352472c Binary files /dev/null and b/R6S/app/src/main/assets/OPs/15.jpg differ diff --git a/R6S/app/src/main/assets/OPs/16.jpg b/R6S/app/src/main/assets/OPs/16.jpg new file mode 100644 index 0000000..37ca127 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/16.jpg differ diff --git a/R6S/app/src/main/assets/OPs/17.jpg b/R6S/app/src/main/assets/OPs/17.jpg new file mode 100644 index 0000000..6523ec7 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/17.jpg differ diff --git a/R6S/app/src/main/assets/OPs/18.jpg b/R6S/app/src/main/assets/OPs/18.jpg new file mode 100644 index 0000000..8a3a3c2 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/18.jpg differ diff --git a/R6S/app/src/main/assets/OPs/19.jpg b/R6S/app/src/main/assets/OPs/19.jpg new file mode 100644 index 0000000..d1ca8cd Binary files /dev/null and b/R6S/app/src/main/assets/OPs/19.jpg differ diff --git a/R6S/app/src/main/assets/OPs/2.jpg b/R6S/app/src/main/assets/OPs/2.jpg new file mode 100644 index 0000000..6f7fb48 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/2.jpg differ diff --git a/R6S/app/src/main/assets/OPs/20.jpg b/R6S/app/src/main/assets/OPs/20.jpg new file mode 100644 index 0000000..96d847a Binary files /dev/null and b/R6S/app/src/main/assets/OPs/20.jpg differ diff --git a/R6S/app/src/main/assets/OPs/21.jpg b/R6S/app/src/main/assets/OPs/21.jpg new file mode 100644 index 0000000..648ba26 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/21.jpg differ diff --git a/R6S/app/src/main/assets/OPs/22.jpg b/R6S/app/src/main/assets/OPs/22.jpg new file mode 100644 index 0000000..c6cd49f Binary files /dev/null and b/R6S/app/src/main/assets/OPs/22.jpg differ diff --git a/R6S/app/src/main/assets/OPs/23.jpg b/R6S/app/src/main/assets/OPs/23.jpg new file mode 100644 index 0000000..2be7fa6 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/23.jpg differ diff --git a/R6S/app/src/main/assets/OPs/24.jpg b/R6S/app/src/main/assets/OPs/24.jpg new file mode 100644 index 0000000..42d96e3 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/24.jpg differ diff --git a/R6S/app/src/main/assets/OPs/25.jpg b/R6S/app/src/main/assets/OPs/25.jpg new file mode 100644 index 0000000..e1a1551 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/25.jpg differ diff --git a/R6S/app/src/main/assets/OPs/26.jpg b/R6S/app/src/main/assets/OPs/26.jpg new file mode 100644 index 0000000..771a67b Binary files /dev/null and b/R6S/app/src/main/assets/OPs/26.jpg differ diff --git a/R6S/app/src/main/assets/OPs/3.jpg b/R6S/app/src/main/assets/OPs/3.jpg new file mode 100644 index 0000000..8d120b5 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/3.jpg differ diff --git a/R6S/app/src/main/assets/OPs/4.jpg b/R6S/app/src/main/assets/OPs/4.jpg new file mode 100644 index 0000000..522d417 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/4.jpg differ diff --git a/R6S/app/src/main/assets/OPs/5.jpg b/R6S/app/src/main/assets/OPs/5.jpg new file mode 100644 index 0000000..3e112d8 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/5.jpg differ diff --git a/R6S/app/src/main/assets/OPs/6.jpg b/R6S/app/src/main/assets/OPs/6.jpg new file mode 100644 index 0000000..ae0d755 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/6.jpg differ diff --git a/R6S/app/src/main/assets/OPs/7.jpg b/R6S/app/src/main/assets/OPs/7.jpg new file mode 100644 index 0000000..89c671e Binary files /dev/null and b/R6S/app/src/main/assets/OPs/7.jpg differ diff --git a/R6S/app/src/main/assets/OPs/8.jpg b/R6S/app/src/main/assets/OPs/8.jpg new file mode 100644 index 0000000..d21ce98 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/8.jpg differ diff --git a/R6S/app/src/main/assets/OPs/9.jpg b/R6S/app/src/main/assets/OPs/9.jpg new file mode 100644 index 0000000..29bbd96 Binary files /dev/null and b/R6S/app/src/main/assets/OPs/9.jpg differ diff --git a/R6S/app/src/main/java/io/nicco/r6s/op_view.java b/R6S/app/src/main/java/io/nicco/r6s/op_view.java index 6f30544..d4878bf 100644 --- a/R6S/app/src/main/java/io/nicco/r6s/op_view.java +++ b/R6S/app/src/main/java/io/nicco/r6s/op_view.java @@ -41,9 +41,7 @@ public class op_view extends Fragment { tmp.setPadding(16, 16, 16, 16); tmp.setTextAlignment(View.TEXT_ALIGNMENT_CENTER); tmp.setBackgroundResource(R.drawable.weapon_selector); - if (Build.VERSION.SDK_INT < 23) { - tmp.setTextAppearance(home.root(), android.R.style.TextAppearance_Medium); - } else { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { tmp.setTextAppearance(android.R.style.TextAppearance_DeviceDefault_Medium); } tmp.setTextColor(0xffffffff); @@ -59,7 +57,8 @@ public class op_view extends Fragment { //Get Operator Info Bundle b = this.getArguments(); SQLiteDatabase db = home.mkdb(); - Cursor c = db.rawQuery("SELECT * FROM operators WHERE id=" + b.getInt("id"), null); + int id = b.getInt("id"); + Cursor c = db.rawQuery("SELECT * FROM operators WHERE id=" + id, null); c.moveToFirst(); // Map Of Text Views @@ -117,6 +116,16 @@ public class op_view extends Fragment { e.printStackTrace(); } + try { + Drawable d = Drawable.createFromStream(home.root().getAssets().open("OPs/" + String.valueOf(id) + ".jpg"), null); + ImageView op_bg = (ImageView) v.findViewById(R.id.op_bg); + //Matrix m = (Matrix) new Matrix.ScaleToFit("START"); + //op_bg.setImageMatrix(m); + op_bg.setImageDrawable(d); + } catch (IOException e) { + e.printStackTrace(); + } + db.close(); return v; diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_camera.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_camera.xml deleted file mode 100644 index 0d9ea10..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_camera.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_gallery.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_gallery.xml deleted file mode 100644 index f6872c4..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_gallery.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_manage.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_manage.xml deleted file mode 100644 index c1be60b..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_manage.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_send.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_send.xml deleted file mode 100644 index 00c668c..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_send.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_share.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_share.xml deleted file mode 100644 index a28fb9e..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_share.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/R6S/app/src/main/res/drawable-v21/ic_menu_slideshow.xml b/R6S/app/src/main/res/drawable-v21/ic_menu_slideshow.xml deleted file mode 100644 index 209aa64..0000000 --- a/R6S/app/src/main/res/drawable-v21/ic_menu_slideshow.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/R6S/app/src/main/res/drawable/circle.xml b/R6S/app/src/main/res/drawable/circle.xml deleted file mode 100644 index 491acea..0000000 --- a/R6S/app/src/main/res/drawable/circle.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/R6S/app/src/main/res/drawable/side_nav_bar.xml b/R6S/app/src/main/res/drawable/side_nav_bar.xml deleted file mode 100644 index 458b4b0..0000000 --- a/R6S/app/src/main/res/drawable/side_nav_bar.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/R6S/app/src/main/res/layout/fragment_op_view.xml b/R6S/app/src/main/res/layout/fragment_op_view.xml index 6975858..e3ffe4e 100644 --- a/R6S/app/src/main/res/layout/fragment_op_view.xml +++ b/R6S/app/src/main/res/layout/fragment_op_view.xml @@ -1,46 +1,60 @@ - - - - - + android:layout_weight="1"> - + android:id="@+id/op_bg" + android:scaleType="centerCrop" + android:adjustViewBounds="true" + android:foregroundGravity="top" /> + + + + + + + + + + + android:textAlignment="center" + android:textAppearance="@android:style/TextAppearance.Material.Large" /> + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="vertical" + android:padding="16dp"> + android:textAlignment="center" + android:textAppearance="@android:style/TextAppearance.Material.Large" /> + android:textAlignment="center" + android:textAppearance="?android:attr/textAppearanceMedium" /> + android:orientation="horizontal"> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:orientation="horizontal" /> + android:textAppearance="?android:attr/textAppearanceSmall" /> + android:orientation="horizontal" /> + android:textAlignment="center" + android:textAppearance="?android:attr/textAppearanceSmall" /> diff --git a/R6S/app/src/main/res/values/colors.xml b/R6S/app/src/main/res/values/colors.xml index 221fc64..cfca49c 100644 --- a/R6S/app/src/main/res/values/colors.xml +++ b/R6S/app/src/main/res/values/colors.xml @@ -4,7 +4,6 @@ #303F9F #FF4081 #222222 - #EEEEEE #0c0c0c #dce5e5e5 diff --git a/R6S/app/src/main/res/values/dimens.xml b/R6S/app/src/main/res/values/dimens.xml index c2effc5..05cdb95 100644 --- a/R6S/app/src/main/res/values/dimens.xml +++ b/R6S/app/src/main/res/values/dimens.xml @@ -5,5 +5,4 @@ 16dp 16dp - 16dp diff --git a/R6S/app/src/main/res/values/drawables.xml b/R6S/app/src/main/res/values/drawables.xml index 9036d27..7abc06d 100644 --- a/R6S/app/src/main/res/values/drawables.xml +++ b/R6S/app/src/main/res/values/drawables.xml @@ -1,8 +1 @@ - - @android:drawable/ic_menu_camera - @android:drawable/ic_menu_gallery - @android:drawable/ic_menu_slideshow - @android:drawable/ic_menu_manage - @android:drawable/ic_menu_share - @android:drawable/ic_menu_send - + diff --git a/R6S/app/src/main/res/values/strings.xml b/R6S/app/src/main/res/values/strings.xml index cfd0197..0d0ba48 100644 --- a/R6S/app/src/main/res/values/strings.xml +++ b/R6S/app/src/main/res/values/strings.xml @@ -4,13 +4,9 @@ Open navigation drawer Close navigation drawer - Settings - - Hello blank fragment DOWN UP MAP - Damage Normal Silenced Magazine @@ -22,8 +18,6 @@ Armor Type Speed - Ability - Weapons Operator Image Gadget Primary