This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey guys, newbie Android Dev here.
Currently I'm working on wrapping a game in WebView. So far it's amazing, I'm not using Cordova but more like doing things on my own. Right now I'm stuck with one really annoying cycle. As far as I know WebViews are introduced in Android 5.0( API 21). But I wanted to target more users so I end up using Crosswalk. The problem was that Crosswalk is kinda huge, when comes to the output apk's size. So I used Android's productFlavor feature. So right now I can build 2 apks - one for Android 5.0 (without Crosswalk, so apk size is way smaller) and one with Crosswalk so I can target (17-21API level). But whenever I want to build separate apks I have to go to gradle's and manually set the minSdkVersion and targetSdkVersion values.
Then I have to submit these two generated apks to Google Play Console. The whole process feels kinda...meh.
I have read about the new App Bundle feature and split apks, but not sure is this going to be useful.
To generalise the situation and my actual question. How to build two different apks as one(bundle maybe?), that acts different on different devices?
By 'acts different' I mean different classes and activities.
By 'different devices' I mean different Android versions.
Is there any good trick I can use ? Any suggestions?
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AndroidStud...