Skip to content

Commit de2e369

Browse files
chore: Release v0.9.1 (#2490)
chore: Release v0.9.1
2 parents 82c1182 + 9a12992 commit de2e369

File tree

4 files changed

+30
-17
lines changed

4 files changed

+30
-17
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ android {
2323
applicationId "com.eventyay.attendee"
2424
minSdkVersion 21
2525
targetSdkVersion 28
26-
versionCode 16
27-
versionName "0.9.0"
26+
versionCode 17
27+
versionName "0.9.1"
2828
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2929
vectorDrawables.useSupportLibrary = true
3030
multiDexEnabled true

app/src/main/java/org/fossasia/openevent/general/auth/AuthFragment.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,11 @@ class AuthFragment : Fragment(), ComplexBackPressFragment {
4848
private val safeArgs: AuthFragmentArgs by navArgs()
4949
private val smartAuthViewModel by sharedViewModel<SmartAuthViewModel>()
5050

51-
override fun onCreate(savedInstanceState: Bundle?) {
52-
super.onCreate(savedInstanceState)
53-
if (BuildConfig.FLAVOR == PLAY_STORE_BUILD_FLAVOR) {
54-
smartAuthViewModel.requestCredentials(SmartAuthUtil.getCredentialsClient(requireActivity()))
55-
smartAuthViewModel.isCredentialStored
56-
.nonNull()
57-
.observe(viewLifecycleOwner, Observer {
58-
if (it) redirectToLogin()
59-
})
60-
}
61-
}
62-
6351
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
6452
rootView = inflater.inflate(R.layout.fragment_auth, container, false)
6553
setSharedElementEnterTransition()
6654
setupToolbar()
55+
checkCredentials()
6756

6857
val progressDialog = progressDialog(context)
6958

@@ -136,6 +125,17 @@ class AuthFragment : Fragment(), ComplexBackPressFragment {
136125
}
137126
}
138127

128+
private fun checkCredentials() {
129+
if (BuildConfig.FLAVOR == PLAY_STORE_BUILD_FLAVOR) {
130+
smartAuthViewModel.requestCredentials(SmartAuthUtil.getCredentialsClient(requireActivity()))
131+
smartAuthViewModel.isCredentialStored
132+
.nonNull()
133+
.observe(viewLifecycleOwner, Observer {
134+
if (it) redirectToLogin()
135+
})
136+
}
137+
}
138+
139139
private fun setupToolbar() {
140140
setToolbar(activity, show = false)
141141
rootView.toolbar.setNavigationOnClickListener {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
v0.9.1:
2+
3+
- Fix app crash on startup/login
4+
5+
🚀 Features
6+
7+
- Reduce APK size by removing redundant Paypal binaries
8+
- Enable PayPal payment option
9+
10+
🐛 Bug Fixes
11+
12+
- Fix app crash in search
13+
- Some UI fixes
14+
- Other fixes and dependency updates

scripts/update-apk.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ for file in app*; do
6060
done
6161

6262
if $IS_PUBLISH_BRANCH ;then
63-
cd ..
6463
gem install fastlane
65-
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
66-
if [ $? -ne 0 ]; then
64+
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
65+
if [[ $? -ne 0 ]]; then
6766
exit 1
6867
fi
6968
if $PR_FOR_RELEASE ;then

0 commit comments

Comments
 (0)