|
4 | 4 | <log text="Sentry SDK Android UPL initialization"/>
|
5 | 5 |
|
6 | 6 | <setBoolFromProperty result="bUploadSymbols" ini="Engine" section="/Script/Sentry.SentrySettings" property="UploadSymbolsAutomatically" default="true" />
|
7 |
| - <setStringFromProperty result="ProjectName" ini="Engine" section="/Script/Sentry.SentrySettings" property="ProjectName"/> |
8 |
| - <setStringFromProperty result="OrganisationName" ini="Engine" section="/Script/Sentry.SentrySettings" property="OrganisationName"/> |
9 |
| - <setStringFromProperty result="AuthToken" ini="Engine" section="/Script/Sentry.SentrySettings" property="AuthToken"/> |
| 7 | + |
| 8 | + <setStringFromProperty result="PropertiesFilePath" ini="Engine" section="/Script/Sentry.SentrySettings" property="PropertiesFilePath"/> |
| 9 | + <setStringReplace result="PropertiesFilePath" source="$S(PropertiesFilePath)" find="(FilePath="" with=""/> |
| 10 | + <setStringReplace result="PropertiesFilePath" source="$S(PropertiesFilePath)" find="")" with=""/> |
10 | 11 | </init>
|
11 | 12 |
|
12 | 13 | <prebuildCopies>
|
13 | 14 | <copyDir src="$S(PluginDir)/Private/Android/Java" dst="$S(BuildDir)/src/com/sentry/unreal" />
|
14 |
| - <copyFile src="$S(PluginDir)/../../Resources/sentry.properties" dst="$S(BuildDir)/gradle/sentry.properties" /> |
15 |
| - |
| 15 | + <copyFile src="$S(ProjectDir)/$S(PropertiesFilePath)" dst="$S(BuildDir)/gradle/sentry.properties" /> |
16 | 16 | <copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry.jar" dst="$S(BuildDir)/gradle/app/libs/sentry.jar" />
|
17 | 17 | <copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry-android-core-release.aar" dst="$S(BuildDir)/gradle/app/libs/sentry-android-core-release.aar" />
|
18 | 18 | <copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry-android-ndk-release.aar" dst="$S(BuildDir)/gradle/app/libs/sentry-android-ndk-release.aar" />
|
|
93 | 93 | 'android.support.v4.content.ContextCompat': 'androidx.core.content.ContextCompat',
|
94 | 94 | 'android.support.v4.content.FileProvider': 'androidx.core.content.FileProvider',
|
95 | 95 | ]
|
96 |
| - |
| 96 | + |
97 | 97 | beforeEvaluate { project ->
|
98 | 98 | project.rootProject.projectDir.traverse(type: groovy.io.FileType.FILES, nameFilter: ~/.*\.java$/) { f ->
|
99 | 99 | mappings.each { entry ->
|
|
107 | 107 | }
|
108 | 108 | </insert>
|
109 | 109 | </baseBuildGradleAdditions>
|
110 |
| - |
111 |
| - <baseBuildGradleAdditions> |
112 |
| - <if condition="bUploadSymbols"> |
113 |
| - <true> |
114 |
| - <insert> |
115 |
| - allprojects { |
116 |
| - beforeEvaluate { project -> |
117 |
| - project.rootProject.projectDir.traverse(type: groovy.io.FileType.FILES, nameFilter: ~/sentry\.properties$/) { f -> |
118 |
| - </insert> |
119 |
| - <insertValue value="ant.replace(file: f, token: 'your-project', value: '$S(ProjectName)')"/> |
120 |
| - <insertNewline/> |
121 |
| - <insertValue value="ant.replace(file: f, token: 'your-org', value: '$S(OrganisationName)')"/> |
122 |
| - <insertNewline/> |
123 |
| - <insertValue value="ant.replace(file: f, token: 'YOUR_AUTH_TOKEN', value: '$S(AuthToken)')"/> |
124 |
| - <insertNewline/> |
125 |
| - <insert> |
126 |
| - } |
127 |
| - } |
128 |
| - } |
129 |
| - </insert> |
130 |
| - </true> |
131 |
| - </if> |
132 |
| - </baseBuildGradleAdditions> |
133 | 110 |
|
134 | 111 | <buildscriptGradleAdditions>
|
135 | 112 | <insert>
|
|
0 commit comments