Skip to content

Commit

Permalink
chore: Release v0.9.1 (#2490)
Browse files Browse the repository at this point in the history
chore: Release v0.9.1
  • Loading branch information
iamareebjamal authored Dec 10, 2019
2 parents 82c1182 + 9a12992 commit de2e369
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId "com.eventyay.attendee"
minSdkVersion 21
targetSdkVersion 28
versionCode 16
versionName "0.9.0"
versionCode 17
versionName "0.9.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,11 @@ class AuthFragment : Fragment(), ComplexBackPressFragment {
private val safeArgs: AuthFragmentArgs by navArgs()
private val smartAuthViewModel by sharedViewModel<SmartAuthViewModel>()

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (BuildConfig.FLAVOR == PLAY_STORE_BUILD_FLAVOR) {
smartAuthViewModel.requestCredentials(SmartAuthUtil.getCredentialsClient(requireActivity()))
smartAuthViewModel.isCredentialStored
.nonNull()
.observe(viewLifecycleOwner, Observer {
if (it) redirectToLogin()
})
}
}

override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
rootView = inflater.inflate(R.layout.fragment_auth, container, false)
setSharedElementEnterTransition()
setupToolbar()
checkCredentials()

val progressDialog = progressDialog(context)

Expand Down Expand Up @@ -136,6 +125,17 @@ class AuthFragment : Fragment(), ComplexBackPressFragment {
}
}

private fun checkCredentials() {
if (BuildConfig.FLAVOR == PLAY_STORE_BUILD_FLAVOR) {
smartAuthViewModel.requestCredentials(SmartAuthUtil.getCredentialsClient(requireActivity()))
smartAuthViewModel.isCredentialStored
.nonNull()
.observe(viewLifecycleOwner, Observer {
if (it) redirectToLogin()
})
}
}

private fun setupToolbar() {
setToolbar(activity, show = false)
rootView.toolbar.setNavigationOnClickListener {
Expand Down
14 changes: 14 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
v0.9.1:

- Fix app crash on startup/login

🚀 Features

- Reduce APK size by removing redundant Paypal binaries
- Enable PayPal payment option

🐛 Bug Fixes

- Fix app crash in search
- Some UI fixes
- Other fixes and dependency updates
5 changes: 2 additions & 3 deletions scripts/update-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ for file in app*; do
done

if $IS_PUBLISH_BRANCH ;then
cd ..
gem install fastlane
fastlane supply --aab ./apk/eventyay-attendee-master-app-playStore-release.aab --skip_upload_apk true --track alpha --json_key ./scripts/fastlane.json --package_name $PACKAGE_NAME $FASTLANE_DRY_RUN
if [ $? -ne 0 ]; then
fastlane supply --aab eventyay-attendee-master-app-playStore-release.aab --skip_upload_apk true --track alpha --json_key ../scripts/fastlane.json --package_name $PACKAGE_NAME $FASTLANE_DRY_RUN
if [[ $? -ne 0 ]]; then
exit 1
fi
if $PR_FOR_RELEASE ;then
Expand Down

0 comments on commit de2e369

Please sign in to comment.