Skip to content

Commit

Permalink
Task: Remove BuyEqupment Activity and Amazon Associates Dependecy
Browse files Browse the repository at this point in the history
  • Loading branch information
mazurio committed Apr 15, 2016
1 parent 6bd67a6 commit 1392d12
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 467 deletions.
22 changes: 4 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'
apply plugin: 'io.fabric'

def getApiKey() {
def Properties properties = new Properties()

properties.load(new FileInputStream(new File('api.properties')))

return properties['AMAZON_API_KEY']
}

android {
compileSdkVersion 23
buildToolsVersion '24.0.0 rc2'
Expand Down Expand Up @@ -44,21 +36,17 @@ android {
productFlavors {
pro {
applicationId 'com.bodyweight.fitness.pro'
versionCode 119
versionName "1.1.9"
versionCode 120
versionName "1.2.0"
}

free {
applicationId 'com.bodyweight.fitness.free'
versionCode 119
versionName "1.1.9"
versionCode 120
versionName "1.2.0"
}
}
buildTypes {
applicationVariants.all { variant ->
variant.buildConfigField "String", "AMAZON_API_KEY", "\"" + getApiKey() + "\""
}

release {
minifyEnabled false
}
Expand Down Expand Up @@ -121,8 +109,6 @@ dependencies {
transitive = true;
}

compile files('libs/amazon-mobile-associates-1.0.73.0.jar')

compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Expand Down
Binary file removed app/libs/amazon-mobile-associates-1.0.73.0.jar
Binary file not shown.
12 changes: 1 addition & 11 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@
android:value=".ui.MainActivity" />
</activity>

<activity
android:name=".ui.BuyEquipmentActivity"
android:parentActivityName=".ui.MainActivity"
android:theme="@style/AppTheme.Activity">

<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".ui.MainActivity" />
</activity>

<activity
android:name=".ui.ProgressActivity"
android:parentActivityName=".ui.MainActivity"
Expand All @@ -72,6 +62,6 @@

<meta-data
android:name="io.fabric.ApiKey"
android:value="REPLACE_HERE" />
android:value="5dcec45142f2b7beb83af419bcb06344e8598390" />
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import com.bodyweight.fitness.R;
import com.bodyweight.fitness.stream.RoutineStream;
import com.bodyweight.fitness.ui.BuyEquipmentActivity;
import com.bodyweight.fitness.ui.ProgressActivity;
import com.bodyweight.fitness.view.dialog.ProgressDialog;

Expand Down Expand Up @@ -82,12 +81,6 @@ public void onClickLogWorkoutButton() {
mLogWorkoutDialog.show();
}

public void onClickBuyEquipment() {
getContext().startActivity(
new Intent(getContext(), BuyEquipmentActivity.class)
);
}

public void onClickWatchOnYouTube() {
String id = RoutineStream.getInstance().getExercise().getYouTubeId();

Expand Down
132 changes: 0 additions & 132 deletions app/src/main/java/com/bodyweight/fitness/ui/BuyEquipmentActivity.java

This file was deleted.

7 changes: 0 additions & 7 deletions app/src/main/java/com/bodyweight/fitness/view/ActionView.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ public void onClickLogWorkoutButton(View view) {
mPresenter.onClickLogWorkoutButton();
}

@OnClick(R.id.action_view_action_sheet_buy_equipment)
@SuppressWarnings("unused")
public void onClickBuyEquipment(View view) {
mMaterialSheet.hideSheet();
mPresenter.onClickBuyEquipment();
}

@OnClick(R.id.action_view_action_sheet_watch_on_youtube)
@SuppressWarnings("unused")
public void onClickWatchOnYouTube(View view) {
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/drawable/state_shopping.xml

This file was deleted.

Loading

0 comments on commit 1392d12

Please sign in to comment.