Skip to content

Commit

Permalink
Fix: Error 505 for Pro (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazurio authored Dec 29, 2016
1 parent b770fac commit 5da356c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 9 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ android {
}
productFlavors {
pro {
resValue "string", "file_provider", "com.bodyweight.fitness.pro.fileprovider"

applicationId 'com.bodyweight.fitness.pro'
versionCode 140
versionName "1.4.0"
versionCode 141
versionName "1.4.1"
}

free {
resValue "string", "file_provider", "com.bodyweight.fitness.free.fileprovider"

applicationId 'com.bodyweight.fitness.free'
versionCode 140
versionName "1.4.0"
versionCode 141
versionName "1.4.1"
}
}
buildTypes {
Expand Down Expand Up @@ -122,7 +126,7 @@ dependencies {
}

buildscript {
ext.support_version = '25.0.0'
ext.support_version = '25.1.0'
ext.kotlin_version = '1.0.4'
repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.bodyweight.fitness.fileprovider"
android:authorities="@string/file_provider"
android:exported="false"
android:grantUriPermissions="true">

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/kotlin/com/bodyweight/fitness/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ object Constants {
val exerciseId = "exerciseId"

val googlePlayUrl = "https://play.google.com/store/apps/details?id=com.bodyweight.fitness.pro"
val fileProvider = "com.bodyweight.fitness.fileprovider"
val fileProvider: String by lazy {
App.context!!.getString(R.string.file_provider)
}

val maximumNumberOfSets = 12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ class CalendarListAdapter : RecyclerView.Adapter<CalendarRoutinePresenter>() {
notifyDataSetChanged()
}

fun removeItem(repositoryRoutine: RepositoryRoutine) {
repositoryRoutineList?.remove(repositoryRoutine)

notifyDataSetChanged()
}

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CalendarRoutinePresenter {
val view = parent.inflate(R.layout.view_calendar_card)

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<string name="transition_dashboard">transition:DASHBOARD</string>

<string name="app_name">Bodyweight Fitness</string>
<string name="app_version">1.4.0</string>
<string name="app_version">1.4.1</string>
<string name="action_progression">Choose Exercise Progression</string>
<string name="action_about">About</string>
<string name="action_faq">FAQ</string>
Expand Down

0 comments on commit 5da356c

Please sign in to comment.