Skip to content

Commit

Permalink
update to work in latest Android Studio version
Browse files Browse the repository at this point in the history
  • Loading branch information
akatkov7 committed Jan 23, 2017
1 parent 3f66335 commit 79367c5
Show file tree
Hide file tree
Showing 64 changed files with 502 additions and 135 deletions.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
29 changes: 29 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.example.eruption"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
}
9 changes: 3 additions & 6 deletions proguard-project.txt → app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
# in /Users/akatkov/Documents/AndroidSDK/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.example.eruption;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.example.eruption", appContext.getPackageName());
}
}
22 changes: 11 additions & 11 deletions AndroidManifest.xml → app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.eruption"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
package="com.example.eruption">

<application
android:allowBackup="true"
android:icon="@drawable/eruption_icon"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
android:supportsRtl="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity
android:name="com.example.eruption.MainActivity"
android:screenOrientation="portrait" >
android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.example.eruption.TitleMenu" >
</activity>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions app/src/main/res/values-w820dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_horizontal_margin">64dp</dimen>
</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
2 changes: 0 additions & 2 deletions res/values/dimens.xml → app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<resources>

<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>

</resources>
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">Eruption</string>
<string name="action_settings">Settings</string>

</resources>
11 changes: 11 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

</resources>
17 changes: 17 additions & 0 deletions app/src/test/java/com/example/eruption/ExampleUnitTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.example.eruption;

import org.junit.Test;

import static org.junit.Assert.*;

/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
39 changes: 0 additions & 39 deletions bin/AndroidManifest.xml

This file was deleted.

Binary file removed bin/AvalancheGame.apk
Binary file not shown.
Binary file removed bin/classes.dex
Binary file not shown.
Binary file not shown.
Binary file removed bin/resources.ap_
Binary file not shown.
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Binary file added build/generated/mockable-android-25.jar
Binary file not shown.
95 changes: 95 additions & 0 deletions build/intermediates/dex-cache/cache.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<items version="2" >

<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-fragment/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="2a53c4f3518116b8c6aee0e477233f0f7da8616f">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-fragment-25.1.0_13019e55d7b0b629bdc6feaa3ed1aaa96618cd15.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-media-compat/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="f02263e35e52668dd17b73bf961437e3d562b35f">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-media-compat-25.1.0_bc2a3696cce8e48b8528cc7d5ee16b257551f2bf.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-core-utils/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="0a0ef86b7fa568a52bf6214a0326ca1f1d618da7">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-core-utils-25.1.0_2817f83a77fa4169deb4a680c448f8e9cd89e9d4.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="1630658fbc2d222b988603c27b4a4249586fbfe7">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-appcompat-v7-25.1.0_dcca5463055e7988b4bd155d003b76d723a54121.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="e79aa3d9a16f8c9f16377c0608de70a8f31e5d80">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-vector-drawable-25.1.0_aa124f5b63e6cbfdabdfaa49db5c3dfe81d66fff.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-v4/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="d7c42c80f6509b9ea4db28ca7859ffae08ec5741">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-v4-25.1.0_039f82566b03661a71fda7ef6948aed17e6c4baa.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/AndroidSDK/sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.0/support-annotations-25.1.0.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="64cb6b229a8bdfd907bc8dd46839a0053e4c018d">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/support-annotations-25.1.0_57417c58b34adccc83be747f6b4ddc9d6543b196.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-core-ui/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="aee64634871d88a419d59eb743c1258a60f19700">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-core-ui-25.1.0_36aa5929ac94099c803f8ff9d331adb12ad3c9cd.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="6fb6ac3e8d3b9013819920d9ea11f3803c4c0033">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-animated-vector-drawable-25.1.0_36c93e8bba71283f4a93e57bf70ae9c5be9bde9d.jar" />
</item>
<item
is-multidex="false"
jar="/Users/akatkov/Documents/Eruption/app/build/intermediates/exploded-aar/com.android.support/support-compat/25.1.0/jars/classes.jar"
jumboMode="false"
optimize="true"
revision="25.0.0"
sha1="ca3c7aa31e2726a400a6e552b93cb9f63c9a1e6d">
<dex dex="/Users/akatkov/Documents/Eruption/app/build/intermediates/pre-dexed/debug/com.android.support-support-compat-25.1.0_82dd9e024cf75816c97091c8179e6e57cfad1faf.jar" />
</item>

</items>
17 changes: 17 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Loading

0 comments on commit 79367c5

Please sign in to comment.