Skip to content

Commit

Permalink
Add signingConfigs release and set buildTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozRatej committed Feb 1, 2023
1 parent f07fa38 commit 4935ab1
Show file tree
Hide file tree
Showing 8 changed files with 676 additions and 658 deletions.
22 changes: 20 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.humhub.humhub"
applicationId "com.humhub.app"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19
Expand All @@ -59,9 +59,27 @@ android {
versionName flutterVersionName
}

signingConfigs {
release {
if (keystorePropertiesFile.exists()) {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
buildTypes {
release {
signingConfig signingConfigs.release
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
} else {
signingConfig signingConfigs.debug
}
ndk {
// Filter for architectures supported by Flutter. https://docs.flutter.dev/development/add-to-app/android/project-setup
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
}
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.humhub.humhub">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.humhub.app">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.humhub.humhub">
package="com.humhub.app">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
12 changes: 6 additions & 6 deletions android/app/src/main/kotlin/com/humhub/humhub/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.humhub.humhub

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
package com.humhub.app

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
16 changes: 8 additions & 8 deletions android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.humhub.humhub">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.humhub.app">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Loading

0 comments on commit 4935ab1

Please sign in to comment.